Create an Attachment

metaWeblog.newMediaObject(blogId, email, password, struct)

Create a new blog post

Parameters:
  • blogId – The blog ID
  • email – The member’s email address
  • password – The member’s password
  • struct – The file attachment structure
Returns:

A stuct that contains the URL to the attachment

The struct parameter must contain three elements:

name
Filename of the attachment
type
MIME type of the attachment such as image/jpeg or audio/mpeg
bits
Base-64 encoded binary data of the attachments

Previous topic

Get Recent Blog Posts

Next topic

Get Categories