API Methods

Login
login
Post
group
Request
group
student
timetable
search

Lab Remote Services

Group

For a group request, the user has to provide a valid authentication (user id and session key), the course name, a group name and an activity id associated with the grades he wants to see/edit. If he makes a current group request, he will receive the current running activity. The requests can receive a parameter with the desired week. If the week is not present then the current week is returned.

API call:
/group/“course_id”/“user_id”/“group_name”/“activity_id”/["week"/]"signature"/ or
/current_group/“course_id”/“user_id”/["week"/]"signature"/

Where signature is a md5 hash obtained from:
"groupcourse_iduser_idgroup_nameactivity_id[week]secret_code" or
"current_groupcourse_iduser_id[week]signature"

Response
status : query's status is either success or failed.
activity_id : the activity id associated with the requested group.
name : the groups's name.
students : a JSON list of students.
Each student has a grade, name, avatar and id. week : the current week.
inactive_weeks : list of integers with the weeks that should not have attendances.

Sample

 { 
   "status" : "success",
   "activity_id" : "1",
   "name" : "312CCa",
   "students": [{"grade": 0, "name": "BOJIN Andrei Florian ", "avatar": 
                 "http://cs09.curs.pub.ro/user/pix.php/748/f1.jpg", "id": 25}, 
                {"grade": 0, "name": "BURGHELEA Alexandru-George ", 
                 "avatar": "http://cs09.curs.pub.ro/user/pix.php/338/f1.jpg", "id": 26}, 
                {"grade": 1, "name": "ASAVOAEI Andrei-Stefan ", 
                 "avatar": "http://cs09.curs.pub.ro/user/pix.php/731/f1.jpg", "id": 190}, 
                {"grade": 0, "name": "COSTEA Maria-Andrada ", 
                 "avatar": "http://cs09.curs.pub.ro/user/pix.php/2474/f1.jpg", "id": 194}, 
                {"grade": 0, "name": "DASCALU Andi-Florin ", 
                 "avatar": "http://cs09.curs.pub.ro/user/pix.php/674/f1.jpg", "id": 195}]
    “week” : 3, 
    “inactive_weeks”: [ 1,3,5 ]
 }