目前,为了在Android上上一个特定的教师课程,我们-
是否有一种更简单的方法,只将用户的课程过滤到他们是教师的课程中?
似乎我可以根据API文档- https://developers.google.com/classroom/reference/rest/v1/courses/list来设置参数。
但是,我如何通过java来做到这一点。对课程的list()方法不接受任何参数。
发布于 2015-08-24 22:24:19
弄明白了..。需要在list()函数上使用setTeacherId()函数。
ListCoursesResponse coursesResponse = mActivity.mService.courses().list()
.setTeacherId(user.getId())
.setPageSize(1)
.execute();https://stackoverflow.com/questions/32192521
复制相似问题