Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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 InvitationsAcceptResource = "v1" :> ("invitations" :> (CaptureMode "id" "accept" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] Empty))))))))
- invitationsAccept :: Text -> InvitationsAccept
- data InvitationsAccept
- iaXgafv :: Lens' InvitationsAccept (Maybe Xgafv)
- iaUploadProtocol :: Lens' InvitationsAccept (Maybe Text)
- iaAccessToken :: Lens' InvitationsAccept (Maybe Text)
- iaUploadType :: Lens' InvitationsAccept (Maybe Text)
- iaId :: Lens' InvitationsAccept Text
- iaCallback :: Lens' InvitationsAccept (Maybe Text)
REST Resource
type InvitationsAcceptResource = "v1" :> ("invitations" :> (CaptureMode "id" "accept" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" 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
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.
Instances
Request Lenses
iaUploadProtocol :: Lens' InvitationsAccept (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
iaAccessToken :: Lens' InvitationsAccept (Maybe Text) Source #
OAuth access token.
iaUploadType :: Lens' InvitationsAccept (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
iaCallback :: Lens' InvitationsAccept (Maybe Text) Source #
JSONP