RWordpress-package: Interface to Wordpress blogs

RWordPress-packageR Documentation

Interface to Wordpress blogs

Description

This is a package that provides a programmatic interface to access Wordpress blogs using XMLRPC.

Details

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.

categories

mt.getCategoryList http://www.sixapart.com/developers/xmlrpc/movable_type_api/mtgetcategorylist.html

deleteCategory

wp.deleteCategory http://codex.wordpress.org/XML-RPC_wp#wp.deleteCategory

deletePage

wp.deletePage http://codex.wordpress.org/XML-RPC_wp#wp.deletePage

deletePost

metaWeblog.deletePost http://www.sixapart.com/developers/xmlrpc/movable_type_api/metaweblogdeletepost.html

getCategories

mt.getCategoryList http://www.sixapart.com/developers/xmlrpc/movable_type_api/mtgetcategorylist.html

getCategoryList

mt.getCategoryList http://www.sixapart.com/developers/xmlrpc/movable_type_api/mtgetcategorylist.html

getOptions

wp.getOptions http://codex.wordpress.org/XML-RPC_wp#wp.getOptions

getPage

wp.getPage http://codex.wordpress.org/XML-RPC_wp#wp.getPage

getPageList

wp.getPageList http://codex.wordpress.org/XML-RPC_wp#wp.getPageList

getPageStatusList

wp.getPageStatusList http://codex.wordpress.org/XML-RPC_wp#wp.getPageStatusList

getPages

wp.getPages http://codex.wordpress.org/XML-RPC_wp#wp.getPages

getPost

metaWeblog.getPost http://www.sixapart.com/developers/xmlrpc/movable_type_api/metawebloggetpost.html

getPostCategories

mt.getPostCategories http://www.sixapart.com/developers/xmlrpc/movable_type_api/mtgetpostcategories.html

getPostStatusList

wp.getPageStatusList http://codex.wordpress.org/XML-RPC_wp#wp.getPageStatusList

getRecentPostTitles

mt.getRecentPostTitles http://www.sixapart.com/developers/xmlrpc/movable_type_api/mtgetrecentposttitles.html

getTags

wp.getTags http://codex.wordpress.org/XML-RPC_wp#wp.getTags

getUsersBlogs

wp.getUsersBlogs http://codex.wordpress.org/XML-RPC_wp#wp.getUsersBlogs

newCategory

wp.newCategory http://codex.wordpress.org/XML-RPC_wp#wp.newCategory

newPage

wp.newPage http://codex.wordpress.org/XML-RPC_wp#wp.newPage

newPost

metaWeblog.newPost http://www.sixapart.com/developers/xmlrpc/movable_type_api/metaweblognewpost.html

publishPost

mt.publishPost http://www.sixapart.com/developers/xmlrpc/movable_type_api/mtpublishpost.html

supportedMethods

mt.supportedMethods http://www.sixapart.com/developers/xmlrpc/movable_type_api/mtsupportedmethods.html

supportedTextFilters

mt.supportedTextFilters http://www.sixapart.com/developers/xmlrpc/movable_type_api/mtsupportedtextfilters.html

uploadFile

wp.uploadFile http://codex.wordpress.org/XML-RPC_wp#wp.uploadFile

Author(s)

Duncan Temple Lang

Maintainer: Duncan Temple Lang <duncan@r-project.org>

See Also

XMLRPC package


duncantl/RWordPress documentation built on Nov. 23, 2023, 4:23 p.m.