반응형
metaWeblog API - editPost
게시물을 수정.
Parameter
- postid (string)
- username (string)
- password (string)
- struct content
- string title
- string description: Post content.
- string post_type: "post" or "page"
- datetime dateCreated†
- datetime date_created_gmt†: If specified, takes precedence over dateCreated.
- array categories: Names of categories assigned to the post.
- array mt_keywords: Names of tags assigned to the post.
- string mt_excerpt
- string mt_text_more: Post "Read more" text.
- string mt_allow_comments: "open" or "closed"
- string mt_allow_pings: "open" or "closed"
- string wp_slug†
- string wp_password†
- string wp_author_id†
- string wp_author_display_name†
- string post_status†
- string wp_post_format† (Added in WordPress 3.1)
- bool sticky† (Added in WordPress 2.7.1)
- array custom_fields† (Added in WordPress 2.3.2)
- struct
- string id: Optional.
- string key
- string value
- struct
- struct enclosure: Only set if post has an enclosure. (Added in WordPress 2.6.3)
- string url
- int length
- string type
publish (string)
postid, username, password, publish는 Blogger API(blogger.editPost)에서 정의된 내용과 동일.
게시물의 내용은 struct 형식으로 표현합니다. (BloggerAPI에서는 string입니다.)
struct에 포함되는 member는 RSS 2.0에서 정의된 item의 요소들을 재활용합니다.
Return Values
- bool true
반응형