Tuesday, June 30, 2009

Drupal for Iphone app - Source code

This is for Peter and anyone else who is trying to use Drupal with their iPhone using XMLRPC.

Drupal for Iphone App
Here are some brief notes.

Make sure to upload drupal's Services modules and set the module permissions.

I added a Settings Bundle for the iPhone app.
For the URL put http://somedrupalwebsite.com/services/xmlrpc
Put in your drupal username and password

Then goto the App.
Click Login
Down in the Results screen. You should see xml code.
If you don't see errors then you're fine.
For the content field, put in a content type, blog, page, whatever.
Put in a title and body and hit submit.
You should see a confirmation as xml code in the result field.
The camera button and the Tab bar controller don't work.
If you want your user picture to show up then change the code in MyViewController.

I think that's about it.
Please post back here and let me know if you try my code out.