Google Classroom API - Very slow -
getting students in class (of 30-40 students) takes anywhere 7-14 seconds per page.
i tried "try it!" feature @ url , it's taking around 7 seconds https://developers.google.com/classroom/reference/rest/v1/courses.students/list
- excluded fields did not help.
- tried decreasing page size 30 10, , each call 3 seconds, has called 3 more times.
update: 7/19/2016
the new apis slow. creating coursework takes 3-4 seconds. idea why?
$.ajax({ type: "post", contenttype:"application/json; charset=utf-8", url: "https://classroom.googleapis.com/v1/courses/" + courseid + "/coursework?alt=json&key=" + apikey, data: json.stringify({ title: assignmentname, materials: [ {'link': { 'url': assignmenturl }} ], worktype: 'assignment', state: 'published', }), beforesend: function (xhr) { xhr.setrequestheader("authorization", "bearer " + token); }, success: ..., error: ... });
Comments
Post a Comment