Returns course work.
gc_courses_course_work_get(courseId, id)
| courseId | Identifier of the course |
|---|---|
| id | Identifier of the course work |
This method returns the following error codes:
PERMISSION_DENIED if the requesting user is not permitted to access therequested course or course work, or for access errors.
INVALID_ARGUMENT if the request is malformed.
NOT_FOUND if the requested course or course work does not exist.
Authentication scopes used by this function are:
https://www.googleapis.com/auth/classroom.coursework.me
https://www.googleapis.com/auth/classroom.coursework.me.readonly
https://www.googleapis.com/auth/classroom.coursework.students
https://www.googleapis.com/auth/classroom.coursework.students.readonly
Set options(googleAuthR.scopes.selected = c("https://www.googleapis.com/auth/classroom.coursework.me", "https://www.googleapis.com/auth/classroom.coursework.me.readonly", "https://www.googleapis.com/auth/classroom.coursework.students", "https://www.googleapis.com/auth/classroom.coursework.students.readonly")
Then run googleAuthR::gar_auth() to authenticate.
See gar_auth for details.