Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
ReadMe | 2011-01-17 | 880 Bytes | |
MoodleRest.zip | 2011-01-17 | 77.5 kB | |
MoodleRest.jar | 2011-01-17 | 61.2 kB | |
Totals: 3 Items | 139.6 kB | 0 |
V0.1 Currently supports all web services except File services. User services are limited to the main fields, extentions to the User data is ignored. The MoodleRest.jar is the currently compiled library and MoodleRest.zip contains the current source code as a NetBeans project. Authentication only supports token at present but will do username/password in a future release. To use the library, initialise the library with: MoodleRestWebService.init(url,token); Replacing <url> with your URL and path to your /webservice/rest/server.php eg. "http://mymoodleserver.com/moodle/webservice/rest/server.php" and <token> with your generated token which has the required rights. There are Exceptions to catch but the code for retrieving all courses is: MoodleCourse[] courses=MoodleRestCourse.getAllCourses(); More documentation will follow in due course, this is just a taster.