API Methods

Login
login
Post
group
Request
group
student
timetable
search

Lab Remote Services

Timetable

For a timetable request, the server needs to know the course name and the user has to
be authenticated (provide a valid user id and session_key).

API call:
/timetable/“course”/“user_id”/“signature”/
Where signature is a md5 hash string obtained from:
"timetablecourseuser_idsecret_code"

Response
status : query's status is either success or failed.
timetable : a JSON representation of the timetable.
Each day has a list of intervals and each interval has a list of groups.
A group is defined by its name and activity id.

Sample

 {
    "status" : "success"
    "timetable" : {
         "monday" : { "8-10" : [{"name":"334CBa", "id":"1"},  
                                {"name":"333CCa", "id":"2"}, ….], 
                      "10-12" : [{"name":"331CCb", "id":"7"},  
                                 {"name":"333CAa", "id":"3"}, ….],
                      "12-14" : [{"name":"332CBa”, "id":"13"},  
                                 {"name":"335CCb", "id":"5"}, ….] },
         "tuesday" : { "8-10" : [{"name":"3331CAa", "id":"9"},  
                                 {"name":"331CAb", "id":"11"}, ….], …. },
         "wednesday" : { "8-10" : [{"name":"334CBb", "id":"12"},  
                                   {"name":"334CAa", "id":"8"}, ….], …. },
         "thursday" : { "8-10" : [{"name":"335CAa", "id":"10"},  
                                  {"name":"332CCa", "id":"4"}, ….], …. },
         "friday" : { "8-10" : [{"name":"332CCb", "id":"6"}, ….], …. }
    }
 }