I am about to try a new project. I want to create a DRUPAL back end JASON server, but use an iPhone client. so, would this be an interesting module to consider in the project? any info I should consider?

Comments

Hugo Wetterberg’s picture

Assigned: Unassigned » Hugo Wetterberg

Hi Vincent,
I'm happy to hear that you're doing iPhone-Drupal development, first off I have some counter-questions.

* Do you have a JSONRPC client ready library for the iPhone, in other words is the decision to use JSONRPC written in stone?
* What sort of operations are you planning to support for the client server interaction, read only or full CRUD?
* What authentication/authorization model are you planning on using?

And another thing, are you prepared to OS (LGPL or similar) some sort of Drupal client library for the iPhone?

Cheers,
/Hugo

irishgringo’s picture

the answer to all of your questions is that I am very flexible... just looking to do some proof of concepts. So, no I have no library. no ideas at all. but I would be very willing to open source the solution when its finished.

but about the iPhone JSONRPC client software. I believe it is already part of Foundation.h or at least UIKit.h
both are part of the xCode for iPhone development environment.

I was also planning on doing both CRUD and read only.

but if you have some ideas, I would be interested in hearing them. I suppose my question is... is this the module I should be experimenting with? or should I look at some alternative ideas?
i figure If I can get an ajax front end to talk to DRUPAL, then I should be able to do it on an iPhone as well.

Hugo Wetterberg’s picture

Issue tags: +services, +iphone

Well, I'm currently developing a OAuth authentication model for services, and a REST server implementation. I haven't released the OAuth or REST implementation yet, as it depends on a patch being accepted into services, and they don't move fast. The REST server requires yet another patch to the services module that I plan to submit after the first has been accepted. But everything is available on github:

Customized services:
Just OAuth (pluggable authentication support): http://github.com/hugowetterberg/services/tree/oauth
OAuth+REST (resource-based services support): http://github.com/hugowetterberg/services/tree/oauth-rest

OAuth implementation:
http://github.com/hugowetterberg/services_oauth/tree/master

REST server:
http://github.com/hugowetterberg/rest_server/tree/master

There is a utility module for defining resource-based services using classes too:
http://github.com/hugowetterberg/services_oop/tree/master

Along with a query builder module to make the implementation resource index listings easier:
http://github.com/hugowetterberg/query_builder/tree/master

The only one that has any docs so far is the query_builder module. But I'll be happy to help you if you have any questions.

irishgringo’s picture

this is really interesting stuff.
I have about a week before I can do this, perhaps it is two weeks away. So I will taqke some time to study this, and collect the iPhone documentation that apply to this.
so I appreaciate your help

Hugo Wetterberg’s picture

Status: Active » Closed (fixed)
irishgringo’s picture

just an FYI: Apple just released a developer note last week stating that all new releases of Apps must conform to the 3.0 API. I don't even have the 3.0 api installed yet, which is something I am doing today. But the 3.0 is pretty advanced, and has some interesting features, like PUSH technology. I am going to read the SDK over and make certain that there are not some new JSON stuff. stay turned, and I will let you know.

point two. The STANFORD class that is being tought this week just had a series of HOMEWORK asignments that used some kind of JSON. I am not exactly sure as I am behind in my class work. again stay tuned.

mrgoltra’s picture

subscribing.

davea’s picture

subscribing

mrgoltra’s picture

Noob question here. Are there any other implementation besides JSON? I would really like to use Drupal 7 as a backend for the app I am developing but JSON is version 6.x only. I really would like to stick with Drupal as a backend CMS.

Thanks

voxpelli’s picture

@mrgoltra: The REST Server that is included in Services 7.x-3.x does support JSON among other formats

mrgoltra’s picture

Thank you much.

kylebrowning’s picture

This solves all of your iPhone & iPad (iOS) problems https://github.com/workhabitinc/drupal-ios-sdk

amber himes matz’s picture

Wow, thank you!! Can't wait to dive into this!