Copyright | (c) 2015-2025 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <[email protected]> Toni Cebrián <[email protected]> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | GHC2021 |
Gogol.Classroom.Invitations.Accept
Contents
Description
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.
See: Google Classroom API Reference for classroom.invitations.accept
.
Synopsis
- type ClassroomInvitationsAcceptResource = "v1" :> ("invitations" :> (CaptureMode "id" "accept" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "access_token" Text :> (QueryParam "callback" Text :> (QueryParam "uploadType" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] Empty))))))))
- data ClassroomInvitationsAccept = ClassroomInvitationsAccept {}
- newClassroomInvitationsAccept :: Text -> ClassroomInvitationsAccept
Resource
type ClassroomInvitationsAcceptResource = "v1" :> ("invitations" :> (CaptureMode "id" "accept" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "access_token" Text :> (QueryParam "callback" Text :> (QueryParam "uploadType" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] Empty)))))))) Source #
A resource alias for classroom.invitations.accept
method which the
ClassroomInvitationsAccept
request conforms to.
Constructing a Request
data ClassroomInvitationsAccept Source #
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.
See: newClassroomInvitationsAccept
smart constructor.
Constructors
ClassroomInvitationsAccept | |
Fields
|
Instances
newClassroomInvitationsAccept Source #
Arguments
:: Text | Identifier of the invitation to accept. See |
-> ClassroomInvitationsAccept |
Creates a value of ClassroomInvitationsAccept
with the minimum fields required to make a request.