“XML-RPC WordPress API”的版本间的差异

来自WordPress中文文档
跳转至: 导航搜索
(1个版本)
 
(未显示2个用户的2个中间版本)
第1行: 第1行:
 
{{Languages|
 
{{Languages|
 
{{en|XML-RPC WordPress API}}
 
{{en|XML-RPC WordPress API}}
 +
{{de|XML-RPC WordPress API}}
 +
{{ja|XML-RPC WordPress API}}
 +
{{hr|XML-RPC WordPress API}}
 +
{{pt-br|API WordPress XML-RPC}}
 
{{zh-cn|XML-RPC WordPress API}}
 
{{zh-cn|XML-RPC WordPress API}}
 
}}
 
}}
  
{{Stub}}
+
XML-RPC API that supersedes the legacy Blogger, MovableType, and metaWeblog APIs. Some [[#Clients|clients]] also exist for different programming languages.
XML -RPC API 用于取代传统的博客, MovableType, MetaWeblog的API。
 
  
== 组件 ==
+
== Components ==
  
* [[XML-RPC WordPress API/Posts|贴子]] (贴子, 页面, 自定义贴子类型) - 新添加于[[Version 3.4|WordPress 3.4]]
+
* [[XML-RPC WordPress API/Posts|Posts]] (for posts, pages, and custom post types) - Added in [[Version 3.4|WordPress 3.4]]
 
** wp.getPost
 
** wp.getPost
 
** wp.getPosts
 
** wp.getPosts
第19行: 第22行:
 
** wp.getPostFormats
 
** wp.getPostFormats
 
** wp.getPostStatusList
 
** wp.getPostStatusList
* [[XML-RPC WordPress API/Taxonomies|分类系统]] (分类, 标签, 自定义分类系统) - 新添加于[[Version 3.4|WordPress 3.4]]
+
* [[XML-RPC WordPress API/Taxonomies|Taxonomies]] (for categories, tags, and custom taxonomies) - Added in [[Version 3.4|WordPress 3.4]]
 
** wp.getTaxonomy
 
** wp.getTaxonomy
 
** wp.getTaxonomies
 
** wp.getTaxonomies
第27行: 第30行:
 
** wp.editTerm
 
** wp.editTerm
 
** wp.deleteTerm
 
** wp.deleteTerm
* [[XML-RPC WordPress API/Media|多媒体]] - 新添加于[[Version 3.1|WordPress 3.1]]
+
* [[XML-RPC WordPress API/Media|Media]] - Added in [[Version 3.1|WordPress 3.1]]
 
** wp.getMediaItem
 
** wp.getMediaItem
 
** wp.getMediaLibrary
 
** wp.getMediaLibrary
 
** wp.uploadFile
 
** wp.uploadFile
* [[XML-RPC WordPress API/Comments|评论]] - 新添加于[[Version 2.7|WordPress 2.7]]
+
* [[XML-RPC WordPress API/Comments|Comments]] - Added in [[Version 2.7|WordPress 2.7]]
 
** wp.getCommentCount
 
** wp.getCommentCount
 
** wp.getComment
 
** wp.getComment
第39行: 第42行:
 
** wp.deleteComment
 
** wp.deleteComment
 
** wp.getCommentStatusList
 
** wp.getCommentStatusList
* [[XML-RPC WordPress API/Options|选项]] - 新添加于[[Version 2.6|WordPress 2.6]]
+
* [[XML-RPC WordPress API/Options|Options]] - Added in [[Version 2.6|WordPress 2.6]]
 
** wp.getOptions
 
** wp.getOptions
 
** wp.setOptions
 
** wp.setOptions
* [[XML-RPC WordPress API/Users|用户]]
+
* [[XML-RPC WordPress API/Users|Users]]
 
** wp.getUsersBlogs
 
** wp.getUsersBlogs
 +
** wp.getUser ([[Version 3.5|3.5]])
 +
** wp.getUsers ([[Version 3.5|3.5]])
 +
** wp.getProfile ([[Version 3.5|3.5]])
 +
** wp.editProfile ([[Version 3.5|3.5]])
 
** wp.getAuthors
 
** wp.getAuthors
  
== 过去的组件 ==
+
== Obsolete Components ==
  
* [[XML-RPC WordPress API/Categories & Tags|分类]] - 使用 [[XML-RPC WordPress API/Taxonomies|分类系统]] 替代, 等同于 <tt>taxonomy_name='category'</tt>
+
* [[XML-RPC WordPress API/Categories & Tags|Categories]] - use [[XML-RPC WordPress API/Taxonomies|Taxonomies]] instead, with <tt>taxonomy='category'</tt>
 
** wp.getCategories
 
** wp.getCategories
 
** wp.suggestCategories
 
** wp.suggestCategories
 
** wp.newCategory
 
** wp.newCategory
 
** wp.deleteCategory
 
** wp.deleteCategory
* [[XML-RPC WordPress API/Categories & Tags#wp.getTags|标签]] - 使用 [[XML-RPC WordPress API/Taxonomies|分类系统]] 替代, 等同于 <tt>taxonomy_name='post_tag'</tt>
+
* [[XML-RPC WordPress API/Categories & Tags#wp.getTags|Tags]] - use [[XML-RPC WordPress API/Taxonomies|Taxonomies]] instead, with <tt>taxonomy='post_tag'</tt>
 
** wp.getTags
 
** wp.getTags
* [[XML-RPC WordPress API/Pages|页面]] - 使用 [[XML-RPC WordPress API/Posts|贴子]] 替代, 等同于 <tt>post_type='page'</tt>
+
* [[XML-RPC WordPress API/Pages|Pages]] - use [[XML-RPC WordPress API/Posts|Posts]] instead, with <tt>post_type='page'</tt>
 
** wp.getPage
 
** wp.getPage
 
** wp.getPages
 
** wp.getPages
第64行: 第71行:
 
** wp.getPageStatusList
 
** wp.getPageStatusList
 
** wp.getPageTemplates
 
** wp.getPageTemplates
 +
 +
 +
 +
= Clients =
 +
 +
* [https://github.com/zachfeldman/rubypress rubypress] WordPress XML-RPC client for Ruby projects. Mirrors this documentation closely, full test suite built in.
 +
* [http://wordpress.org/plugins/json-api/ plugins/json-api] Related : WordPress JSON api
  
 
[[Category:Advanced Topics]]
 
[[Category:Advanced Topics]]
 
[[Category:WordPress Development]]
 
[[Category:WordPress Development]]
 
[[Category:Feeds]]
 
[[Category:Feeds]]

2015年2月12日 (四) 08:30的最新版本

wordpress.org.cn

XML-RPC API that supersedes the legacy Blogger, MovableType, and metaWeblog APIs. Some clients also exist for different programming languages.

Components

  • Posts (for posts, pages, and custom post types) - Added in WordPress 3.4
    • wp.getPost
    • wp.getPosts
    • wp.newPost
    • wp.editPost
    • wp.deletePost
    • wp.getPostType
    • wp.getPostTypes
    • wp.getPostFormats
    • wp.getPostStatusList
  • Taxonomies (for categories, tags, and custom taxonomies) - Added in WordPress 3.4
    • wp.getTaxonomy
    • wp.getTaxonomies
    • wp.getTerm
    • wp.getTerms
    • wp.newTerm
    • wp.editTerm
    • wp.deleteTerm
  • Media - Added in WordPress 3.1
    • wp.getMediaItem
    • wp.getMediaLibrary
    • wp.uploadFile
  • Comments - Added in WordPress 2.7
    • wp.getCommentCount
    • wp.getComment
    • wp.getComments
    • wp.newComment
    • wp.editComment
    • wp.deleteComment
    • wp.getCommentStatusList
  • Options - Added in WordPress 2.6
    • wp.getOptions
    • wp.setOptions
  • Users
    • wp.getUsersBlogs
    • wp.getUser (3.5)
    • wp.getUsers (3.5)
    • wp.getProfile (3.5)
    • wp.editProfile (3.5)
    • wp.getAuthors

Obsolete Components

  • Categories - use Taxonomies instead, with taxonomy='category'
    • wp.getCategories
    • wp.suggestCategories
    • wp.newCategory
    • wp.deleteCategory
  • Tags - use Taxonomies instead, with taxonomy='post_tag'
    • wp.getTags
  • Pages - use Posts instead, with post_type='page'
    • wp.getPage
    • wp.getPages
    • wp.getPageList
    • wp.newPage
    • wp.editPage
    • wp.deletePage
    • wp.getPageStatusList
    • wp.getPageTemplates


Clients

  • rubypress WordPress XML-RPC client for Ruby projects. Mirrors this documentation closely, full test suite built in.
  • plugins/json-api Related : WordPress JSON api