WP web services beta

Hi everybody.

I finished coding web services API. Still it needs some cleanup

METHODS

  • wp.newUser – allows to create a new user
  • wp.editUser – edit user information
  • wp.deleteUser – delete a specfic user
  • wp.getUser – get information about a specific user
  • wp.getUsers – retrieve a list of users
  • wp.newPost  – create a new post in any post type
  • wp.editPost  – edit any post type
  • wp.deletePost – delete a specific post
  • wp.getPost  – get any post from any post type
  • wp.getPosts  – get a list of posts in the blog
  • wp.getPostType – get information about a specific post type
  • wp.getPostTypes – get a list of registered taxonomies
  • wp.getPostTerms – get terms associated with a post
  • wp.setPostTerms – set terms associated with a post
  • wp.getTaxonomy – get information about a specific taxonomy
  • wp.getTaxonomies  – get a list of registered taxonomies
  • wp.newTerm  – create a new term in a taxonomy
  • wp.editTerm  – edit a term in a taxonomy
  • wp.deleteTerm  – delete a term in a taxonomy
  • wp.getTerm  – get information about a specific term in a taxonomy
  • wp.getTerms – get a list of term associated with a taxonomy
  • wp.getSettings – get blog settings
  • wp.updateSettings – update blog settings
Here you can find the relevant tickets.
The plugin code can be found here.

Next few weeks i will be working on bug fixing and cleaning up the code.

ISSUES

  • As I,m not a native English speaker feel free to edit/comment on any error messages or related 😉

TODOS

  • Implement the send mail feature
  • cleanup and bug fixing

QUESTIONS

  • options are not validated individually. This may cause errors when users try to update with invalid values. The current implementation also dont validate options

WHAT NEXT?

Duplicate  class-wp-xmlrpc-server. add the new methods if possible add new methods.

Bug fixing and documetation.

Change the plugin to use the new xmlrpc class instead of the default one.

After the end of the summer we will be able to replace the new class with the existing class hopefully from WordPress 3.3

Cheers