MetaWeblog



The following methods are supported:

method blogger.deletePost

Deletes a post.

Parameters

stringappKey (optional)
stringpostid
stringusername
stringpassword
booleanpublish - Where applicable, this specifies whether the blog should be republished after the post has been deleted.

Return Value

booleanAlways returns true.

method blogger.getUsersBlogs

Returns information on all the blogs a given user is a member.

Parameters

stringappKey
stringusername
stringpassword

Return Value

array of struct BlogInfo 

method metaWeblog.editPost

Updates and existing post to a designated blog using the metaWeblog API. Returns true if completed.

Parameters

stringpostid
stringusername
stringpassword
struct Postpost
booleanpublish

Return Value

any 

method metaWeblog.getCategories

Retrieves a list of valid categories for a post using the metaWeblog API. Returns the metaWeblog categories struct collection.

Parameters

stringblogid
stringusername
stringpassword

Return Value

array of struct CategoryInfo 

method metaWeblog.getPost

Retrieves an existing post using the metaWeblog API. Returns the metaWeblog struct.

Parameters

stringpostid
stringusername
stringpassword

Return Value

struct Post 

method metaWeblog.getRecentPosts

Retrieves a list of the most recent existing post using the metaWeblog API. Returns the metaWeblog struct collection.

Parameters

stringblogid
stringusername
stringpassword
integernumberOfPosts

Return Value

array of struct Post 

method metaWeblog.newMediaObject

Makes a new file to a designated blog using the metaWeblog API. Returns url as a string of a struct.

Parameters

stringblogid
stringusername
stringpassword
struct FileDatafile

Return Value

struct UrlData 

method metaWeblog.newPost

Makes a new post to a designated blog using the metaWeblog API. Returns postid as a string.

Parameters

stringblogid
stringusername
stringpassword
struct Postpost
booleanpublish

Return Value

string 

method wp.newCategory

Create a new category

Parameters

stringblog_id
stringusername
stringpassword
struct WpCategorycategory

Return Value

integer 

struct BlogInfo

Members

string blogid
string url
string blogName

struct Post

Members

dateTime dateCreated - Required when posting.
string description - Required when posting.
string title - Required when posting.
array of string categories (optional)
struct Enclosure enclosure (optional)
string link (optional)
string permalink (optional)
any postid (optional)
struct Source source (optional)
string userid (optional)
any mt_allow_comments (optional)
any mt_allow_pings (optional)
any mt_convert_breaks (optional)
string mt_text_more (optional)
string mt_excerpt (optional)
string mt_keywords (optional)
string wp_slug (optional)

struct CategoryInfo

Members

string description
string htmlUrl
string rssUrl
string title
string categoryid

struct FileData

Members

base64 bits
string name
string type

struct UrlData

Members

string url

struct WpCategory

Members

string name
string slug (optional)
integer parent_id
string description (optional)

struct Enclosure

Members

integer length (optional)
string type (optional)
string url (optional)

struct Source

Members

string name (optional)
string url (optional)