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 |
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.
See: Google Classroom API Reference for classroom.invitations.list
.
Synopsis
- type InvitationsListResource = "v1" :> ("invitations" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "courseId" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "userId" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListInvitationsResponse)))))))))))
- invitationsList :: InvitationsList
- data InvitationsList
- ilXgafv :: Lens' InvitationsList (Maybe Xgafv)
- ilUploadProtocol :: Lens' InvitationsList (Maybe Text)
- ilCourseId :: Lens' InvitationsList (Maybe Text)
- ilAccessToken :: Lens' InvitationsList (Maybe Text)
- ilUploadType :: Lens' InvitationsList (Maybe Text)
- ilUserId :: Lens' InvitationsList (Maybe Text)
- ilPageToken :: Lens' InvitationsList (Maybe Text)
- ilPageSize :: Lens' InvitationsList (Maybe Int32)
- ilCallback :: Lens' InvitationsList (Maybe Text)
REST Resource
type InvitationsListResource = "v1" :> ("invitations" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "courseId" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "userId" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListInvitationsResponse))))))))))) Source #
A resource alias for classroom.invitations.list
method which the
InvitationsList
request conforms to.
Creating a Request
invitationsList :: InvitationsList Source #
Creates a value of InvitationsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data InvitationsList Source #
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.
See: invitationsList
smart constructor.
Instances
Request Lenses
ilUploadProtocol :: Lens' InvitationsList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ilCourseId :: Lens' InvitationsList (Maybe Text) Source #
Restricts returned invitations to those for a course with the specified identifier.
ilAccessToken :: Lens' InvitationsList (Maybe Text) Source #
OAuth access token.
ilUploadType :: Lens' InvitationsList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ilUserId :: Lens' InvitationsList (Maybe Text) Source #
Restricts returned invitations to those for a specific user. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `"me"`, indicating the requesting user
ilPageToken :: Lens' InvitationsList (Maybe Text) Source #
nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token.
ilPageSize :: Lens' InvitationsList (Maybe Int32) Source #
Maximum number of items to return. Zero means no maximum. The server may return fewer than the specified number of results.
ilCallback :: Lens' InvitationsList (Maybe Text) Source #
JSONP