Returns a list of course work that the requester is permitted to view. Course students may only view PUBLISHED course work. Course teachersand domain administrators may view all course work.

gc_courses_course_work_list(
  courseId,
  orderBy = NULL,
  pageToken = NULL,
  pageSize = NULL,
  courseWorkStates = NULL
)

Arguments

courseId

Identifier of the course

orderBy

Optional sort ordering for results

pageToken

nextPageToken

pageSize

Maximum number of items to return

courseWorkStates

Restriction on the work status to return

Details

This method returns the following error codes:

  • PERMISSION_DENIED if the requesting user is not permitted to accessthe requested course 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

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.

See also