RWordPress-package | R Documentation |
This is a package that provides a programmatic interface to access Wordpress blogs using XMLRPC.
Package: | RWordPress |
Version: | 0.1-0 |
License: | BSD |
Imports: | XMLRPC |
Built: | R 2.11.0; ; 2010-03-13 23:08:36 UTC; unix |
Most of the functions in the package are direct R implementations of the corresponding methods described in the Wordpress API. This is described in http://codex.wordpress.org/XML-RPC_wp and http://www.movabletype.org/documentation/developer/api/ There are essentially 4 overlapping APIs, i.e. that have similar facilities in common with perhaps slightly different parameters. We are not documenting how to use these functions explicitly in this package. You are encouraged to read the documentation for each method on the pages above.
All the functions require a login and password. This is specified
as a named character vector with one element. The value is the password
and the name is the login. So we specify this as
c(duncan = "mypassword")
.
Rather than specifying this in each call, we can set the value of the R option
WordpressLogin
to this vector. By defalt, the functions look
there for the login and password.
For the functions that require a blog identifier, we can usually give
the value 0 to indicate the default blog. Alternatively, you can get
the blog identifier by calling getUsersBlogs
. The identifier is
in the element blogid
.
The following are a list of the R functions, the corresponding XMLRPC method and a link to the API reference to that function (where the documentation exists). You should consult that documentation for the number and types of the parameters expected and the return type.
mt.getCategoryList http://www.sixapart.com/developers/xmlrpc/movable_type_api/mtgetcategorylist.html
wp.deleteCategory http://codex.wordpress.org/XML-RPC_wp#wp.deleteCategory
wp.deletePage http://codex.wordpress.org/XML-RPC_wp#wp.deletePage
metaWeblog.deletePost http://www.sixapart.com/developers/xmlrpc/movable_type_api/metaweblogdeletepost.html
mt.getCategoryList http://www.sixapart.com/developers/xmlrpc/movable_type_api/mtgetcategorylist.html
mt.getCategoryList http://www.sixapart.com/developers/xmlrpc/movable_type_api/mtgetcategorylist.html
wp.getOptions http://codex.wordpress.org/XML-RPC_wp#wp.getOptions
wp.getPageList http://codex.wordpress.org/XML-RPC_wp#wp.getPageList
wp.getPageStatusList http://codex.wordpress.org/XML-RPC_wp#wp.getPageStatusList
wp.getPages http://codex.wordpress.org/XML-RPC_wp#wp.getPages
metaWeblog.getPost http://www.sixapart.com/developers/xmlrpc/movable_type_api/metawebloggetpost.html
mt.getPostCategories http://www.sixapart.com/developers/xmlrpc/movable_type_api/mtgetpostcategories.html
wp.getPageStatusList http://codex.wordpress.org/XML-RPC_wp#wp.getPageStatusList
mt.getRecentPostTitles http://www.sixapart.com/developers/xmlrpc/movable_type_api/mtgetrecentposttitles.html
wp.getUsersBlogs http://codex.wordpress.org/XML-RPC_wp#wp.getUsersBlogs
wp.newCategory http://codex.wordpress.org/XML-RPC_wp#wp.newCategory
metaWeblog.newPost http://www.sixapart.com/developers/xmlrpc/movable_type_api/metaweblognewpost.html
mt.publishPost http://www.sixapart.com/developers/xmlrpc/movable_type_api/mtpublishpost.html
mt.supportedMethods http://www.sixapart.com/developers/xmlrpc/movable_type_api/mtsupportedmethods.html
mt.supportedTextFilters http://www.sixapart.com/developers/xmlrpc/movable_type_api/mtsupportedtextfilters.html
wp.uploadFile http://codex.wordpress.org/XML-RPC_wp#wp.uploadFile
Duncan Temple Lang
Maintainer: Duncan Temple Lang <duncan@r-project.org>
XMLRPC
package
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.