开发者

Drupal JSON API on iPhone

I am working with an app that is querying a JSON API on a server running Drupal. I used this tutorial and have changed the code a bit to work with my program, but every request just sends me to the not authorized page tha开发者_Go百科t the server generates. Any ideas why?


Why not use the drupal ios sdk? https://github.com/organizations/workhabitinc


I guess you haven't set the permissions in the Drupal service.

First go to permissions, and set the desired ones for the modules you're using (I guess you're using the default ones that are included within the services module).

Next, go to Site Building->Services, and authentication. Check if you have any authentication module set, and if so, add the methods that you're using to that key.

At our company we've made several apps which uses Drupal (but using XMLRPC instead of JSON). So feel free to ask everytime you need :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜