Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WordPress iOS API

Tags:

ios

wordpress

I would like to know if there is an API for WordPress, built in Objective-C for iOS. This API must support the following:

  • It must support custom servers (e.g. www.myblog.com, instead of myblog.wordpress.com).

  • It must allow me to make a post to the blog, and let me save a post as a draft.

  • It preferably would be simple to set up, I simply authenticate the user, and have access to what I would want, similar to this


WordPress *wp = [[WordPress alloc] initWithServer:[NSURL URLWithString:@"http://www.myblog.com"];
[wp authenticate:@"wordpress-user-name" password:@"wordpress-user-password"];
[wp saveDraft:@"wordpress-post-name" content:@"wordpress-post-content" tags:@"wordpress-post-tags"];
[wp postDraft:@"wordpress-post-name"];
[wp logout];
[wp release];

If there is no such API out there, can anyone point me to some references that could help me get started on writing my own?

Thanks for your time

like image 221
Richard J. Ross III Avatar asked Jun 15 '11 01:06

Richard J. Ross III


1 Answers

Look at the Wordpress iOS app: http://ios.wordpress.org/. It includes the necessary XML-RPC libraries.

EDIT: it uses the XML-RPC interface, of which there are a number of, including https://bitbucket.org/kdbdallas/xmlrpc-ios

like image 70
Femi Avatar answered Sep 25 '22 23:09

Femi