Returns a list of student submissions that the requester is permitted toview, factoring in the OAuth scopes
of the request. - may be specified as the course_work_id to include studentsubmissions for multiple course
work items. Course students may only view their own work. Course teachersand domain administrators may view all
student submissions.
gc_courses_course_work_student_submissions_list( courseId, courseWorkId, userId = NULL, late = NULL, pageToken = NULL, states = NULL, pageSize = NULL )
| courseId | Identifier of the course |
|---|---|
| courseWorkId | Identifier of the student work to request |
| userId | Optional argument to restrict returned student work to those owned by the |
| late | Requested lateness value |
| pageToken | nextPageToken |
| states | Requested submission states |
| pageSize | Maximum number of items to return |
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 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
https://www.googleapis.com/auth/classroom.student-submissions.me.readonly
https://www.googleapis.com/auth/classroom.student-submissions.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", "https://www.googleapis.com/auth/classroom.student-submissions.me.readonly", "https://www.googleapis.com/auth/classroom.student-submissions.students.readonly")
Then run googleAuthR::gar_auth() to authenticate.
See gar_auth for details.