iPhone App Web API discussion - good info thanks Jerome

iPhone App Web API discussion - good info thanks Jerome

by Jay Love -
Number of replies: 0
09:02 AM: Hello,

I wanted to reach out to you because I have noticed you have a lot of knowledge on Moodle. I am developing a iphone App for an online college that already leverages Moodle. What's the most efficient way to complete the following:

From APP
authenticate user credentials from moodle site v2.1
after athentication, list courses
push notifications from Moodle e.g. Quiz dates, homework due...

I'm not asking for you to know Xcode or objective C. I want to to know the best way to export student data to my iphone APP

thank you very much. I appreciate your time.

J
06:50 PM: Please try to post in the forum, so other people can benefit and participate.
For authentication: http://docs.moodle.org/dev/Creating_a_web_service_client#How_to_get_a_user_token
For knowing the available ws functions: Admin > plugins > web services > API Documentation (list of course function exist, push notification doesn't exist yet, no quizz functions too...)
The ws roadmap is there: http://docs.moodle.org/dev/Web_services_Roadmap

Our Moodle app uses XML-RPC protocol. We use the xml-rpc client from wordpress. However if you want great performance, try to use the REST protocol. XML-RPC is by far much more time consuming than SOAP and REST (between 4 to 44 times slower). REST is better than SOAP at the first request (more than twice faster), but SOAP gets closer once it is cached. Note that if iOS support JSON encoding/decoding easily, it would be good to create a fully JSON Moodle REST server.

Cheers,
Jerome

Average of ratings: -