Liking cljdoc? Tell your friends :D

happygapi.classroom.invitations

Google Classroom API: invitations. Manages classes, rosters, and invitations in Google Classroom. See: https://developers.google.com/classroom/api/reference/rest/v1/invitations

Google Classroom API: invitations.
Manages classes, rosters, and invitations in Google Classroom.
See: https://developers.google.com/classroom/api/reference/rest/v1/invitations
raw docstring

accept$clj

(accept$ auth parameters)

https://developers.google.com/classroom/api/reference/rest/v1/invitations/accept

Required parameters: id

Optional parameters: none

Accepts an invitation, removing it and adding the invited user to the teachers or students (as appropriate) of the specified course. Only the invited user may accept an invitation. This method returns the following error codes: * PERMISSION_DENIED if the requesting user is not permitted to accept the requested 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.

https://developers.google.com/classroom/api/reference/rest/v1/invitations/accept

Required parameters: id

Optional parameters: none

Accepts an invitation, removing it and adding the invited user to the teachers or students (as appropriate) of the specified course. Only the invited user may accept an invitation. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to accept the requested 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.
sourceraw docstring

create$clj

(create$ auth parameters body)

https://developers.google.com/classroom/api/reference/rest/v1/invitations/create

Required parameters: none

Optional parameters: none

Body:

{:id string, :userId string, :courseId string, :role string}

Creates an invitation. Only one invitation for a user and course may exist at a time. Delete and re-create an invitation to make changes. This method returns the following error codes: * PERMISSION_DENIED if the requesting user is not permitted to create invitations for this course or for access errors. * NOT_FOUND if the course or the user does not exist. * FAILED_PRECONDITION: * if the requested user's account is disabled. * if the user already has this role or a role with greater permissions. * for the following request errors: * IneligibleOwner * ALREADY_EXISTS if an invitation for the specified user and course already exists.

https://developers.google.com/classroom/api/reference/rest/v1/invitations/create

Required parameters: none

Optional parameters: none

Body: 

{:id string, :userId string, :courseId string, :role string}

Creates an invitation. Only one invitation for a user and course may exist at a time. Delete and re-create an invitation to make changes. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create invitations for this course or for access errors. * `NOT_FOUND` if the course or the user does not exist. * `FAILED_PRECONDITION`: * if the requested user's account is disabled. * if the user already has this role or a role with greater permissions. * for the following request errors: * IneligibleOwner * `ALREADY_EXISTS` if an invitation for the specified user and course already exists.
sourceraw docstring

delete$clj

(delete$ auth parameters)

https://developers.google.com/classroom/api/reference/rest/v1/invitations/delete

Required parameters: id

Optional parameters: none

Deletes an invitation. This method returns the following error codes: * PERMISSION_DENIED if the requesting user is not permitted to delete the requested invitation or for access errors. * NOT_FOUND if no invitation exists with the requested ID.

https://developers.google.com/classroom/api/reference/rest/v1/invitations/delete

Required parameters: id

Optional parameters: none

Deletes an invitation. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to delete the requested invitation or for access errors. * `NOT_FOUND` if no invitation exists with the requested ID.
sourceraw docstring

get$clj

(get$ auth parameters)

https://developers.google.com/classroom/api/reference/rest/v1/invitations/get

Required parameters: id

Optional parameters: none

Returns an invitation. This method returns the following error codes: * PERMISSION_DENIED if the requesting user is not permitted to view the requested invitation or for access errors. * NOT_FOUND if no invitation exists with the requested ID.

https://developers.google.com/classroom/api/reference/rest/v1/invitations/get

Required parameters: id

Optional parameters: none

Returns an invitation. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to view the requested invitation or for access errors. * `NOT_FOUND` if no invitation exists with the requested ID.
sourceraw docstring

list$clj

(list$ auth parameters)

https://developers.google.com/classroom/api/reference/rest/v1/invitations/list

Required parameters: none

Optional parameters: userId, courseId, pageSize, pageToken

Returns a list of invitations that the requesting user is permitted to view, restricted to those that match the list request. Note: At least one of user_id or course_id must be supplied. Both fields can be supplied. This method returns the following error codes: * PERMISSION_DENIED for access errors.

https://developers.google.com/classroom/api/reference/rest/v1/invitations/list

Required parameters: none

Optional parameters: userId, courseId, pageSize, pageToken

Returns a list of invitations that the requesting user is permitted to view, restricted to those that match the list request. *Note:* At least one of `user_id` or `course_id` must be supplied. Both fields can be supplied. This method returns the following error codes: * `PERMISSION_DENIED` for access errors.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close