关于作者

相关热点

MetaWeblog API

上一篇 / 下一篇  2006-11-22 10:03:30

method blogger.deletePost

Deletes a post.

Parameters

stringappKey
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 structBlogInfo 

method metaWeblog.editPost

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

Parameters

stringpostid
stringusername
stringpassword
structPostpost
booleanpublish

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

stringblogid
stringusername
stringpassword

Return Value

array of structCategoryInfo 

method metaWeblog.getPost

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

Parameters

stringpostid
stringusername
stringpassword

Return Value

structPost 

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 structPost 

method metaWeblog.newMediaObject

Add a media object to a post using the metaWeblog API. Returns media url as a string.

Parameters

stringblogid
stringusername
stringpassword
structMediaObjectmediaObject

Return Value

structMediaObjectUrl 

method metaWeblog.newPost

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

Parameters

stringblogid
stringusername
stringpassword
structPostpost
booleanpublish

Return Value

string 

struct BlogInfo

Members

stringblogid
stringurl
stringblogName

struct Post

Members

dateTimedateCreated - Required when posting.
stringdescrīption - Required when posting.
stringtitle - Required when posting.
array of stringcategories (optional)
structEnclosureenclosure (optional)
stringlink (optional)
stringpermalink (optional)
anypostid (optional)
structSourcesource (optional)
stringuserid (optional)

struct CategoryInfo

Members

stringdescrīption
stringhtmlUrl
stringrssUrl
stringtitle
stringcategoryid

struct MediaObject

Members

stringname
stringtype
base64bits

struct MediaObjectUrl

Members

stringurl

struct Enclosure

Members

integerlength (optional)
stringtype (optional)
stringurl (optional)

struct Source

Members

stringname (optional)
stringurl (optional)

TAG:

盈盈秋水 引用 删除 秋水问长天   /   2006-11-22 16:07:46
终于有点更新了……
 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)