Download Latest Version MoodleRest.jar (185.5 kB)
Email in envelope

Get an email when there's a new version of MoodleRest Java Library

Home / V0.1
Name Modified Size InfoDownloads / 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.
Source: ReadMe, updated 2011-01-17