gogol-classroom-0.0.1: Google Classroom SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.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

REST Resource

type InvitationsAcceptResource = "v1" :> ("invitations" :> (CaptureMode "id" "accept" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Post `[JSON]` Empty)))))))))) Source

A resource alias for classroom.invitations.accept method which the InvitationsAccept request conforms to.

Creating a Request

invitationsAccept Source

Arguments

:: Text

iaId

-> InvitationsAccept 

Creates a value of InvitationsAccept with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data InvitationsAccept 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: invitationsAccept smart constructor.

Request Lenses

iaUploadProtocol :: Lens' InvitationsAccept (Maybe Text) Source

Upload protocol for media (e.g. "raw", "multipart").

iaPp :: Lens' InvitationsAccept Bool Source

Pretty-print response.

iaUploadType :: Lens' InvitationsAccept (Maybe Text) Source

Legacy upload protocol for media (e.g. "media", "multipart").

iaId :: Lens' InvitationsAccept Text Source

Identifier of the invitation to accept.