首页 > Other > MetaWeblog 版 XML-RPC服务相关方法和参数

MetaWeblog 版 XML-RPC服务相关方法和参数

MetaWeblog

The following methods are supported:

  • blogger.deletePost
  • blogger.getUserInfo
  • blogger.getUsersBlogs
  • metaWeblog.editPost
  • metaWeblog.getCategories
  • metaWeblog.getPost
  • metaWeblog.getRecentPosts
  • metaWeblog.newMediaObject
  • metaWeblog.newPost

method blogger.deletePost

Deletes a post.

Parameters

string appKey
string postid
string username
string password
boolean publish – Where applicable, this specifies whether the weblog should be republished after the post has been deleted.

Return Value

boolean Always returns true.

method blogger.getUserInfo

Returns information about the given user.

Parameters

string appKey
string username
string password

Return Value

struct UserInfo

method blogger.getUsersBlogs

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

Parameters

string appKey
string username
string password

Return Value

array of struct BlogInfo

method metaWeblog.editPost

Updates and existing post to a designated weblog using the MetaWeblog API. Returns true if completed.

Parameters

string postid
string username
string password
struct Post post
boolean publish

Return Value

boolean

method metaWeblog.getCategories

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

Parameters

string blogid
string username
string password

Return Value

array of struct CategoryInfo

method metaWeblog.getPost

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

Parameters

string postid
string username
string password

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

string blogid
string username
string password
integer numberOfPosts

Return Value

array of struct Post

method metaWeblog.newMediaObject

Makes a new post to a designated blog using the MetaWeblog API. Returns file url as a string.

Parameters

string blogid
string username
string password
struct MediaObject mediaObject

Return Value

struct MediaObjectInfo

method metaWeblog.newPost

Makes a new post to a designated weblog using the MetaWeblog API. Returns postid as a string.

Parameters

string blogid
string username
string password
struct Post post
boolean publish

Return Value

string

struct UserInfo

Members

string userid
string firstname
string lastname
string nickname
string email
string url

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)

struct CategoryInfo

Members

string description
string htmlUrl
string rssUrl
string title
string categoryid

struct MediaObject

Members

string name (optional)
string type (optional)
base64 bits (optional)

struct MediaObjectInfo

Members

string url

struct Enclosure

Members

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

struct Source

Members

string name (optional)
string url (optional)
分类:Other
  1. 还没有评论。
  1. No trackbacks yet.

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: