让学生上课(30-40名学生)每页需要7-14秒。
我甚至试过了#34;试一试!"这个网址的功能,大约需要7秒钟 https://developers.google.com/classroom/reference/rest/v1/courses.students/list
新API同样慢。创建CourseWork需要3-4秒。知道为什么吗?
$.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: ... });