Accepts an invitation, removing it and adding the invited user to theteachers or students (as appropriate) of the specified course. Only theinvited user may accept an invitation. This method returns the following error codes:
gc_invitations_accept(id)
id | Identifier of the invitation to accept |
---|
PERMISSION_DENIED
if the requesting user is not permitted to accept therequested invitation or for access errors.
FAILED_PRECONDITION
for the following request errors:
CourseMemberLimitReached
CourseNotModifiable
CourseTeacherLimitReached
UserGroupsMembershipLimitReached
NOT_FOUND
if no invitation exists with the requested ID.
Authentication scopes used by this function are:
https://www.googleapis.com/auth/classroom.rosters
Set options(googleAuthR.scopes.selected = c("https://www.googleapis.com/auth/classroom.rosters")
Then run googleAuthR::gar_auth()
to authenticate.
See gar_auth
for details.