| 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 |
Network.Google.Resource.Classroom.Invitations.Get
Description
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.
See: Google Classroom API Reference for classroom.invitations.get.
- type InvitationsGetResource = "v1" :> ("invitations" :> (Capture "id" 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 :> Get '[JSON] Invitation))))))))))
- invitationsGet :: Text -> InvitationsGet
- data InvitationsGet
- igXgafv :: Lens' InvitationsGet (Maybe Text)
- igUploadProtocol :: Lens' InvitationsGet (Maybe Text)
- igPp :: Lens' InvitationsGet Bool
- igAccessToken :: Lens' InvitationsGet (Maybe Text)
- igUploadType :: Lens' InvitationsGet (Maybe Text)
- igBearerToken :: Lens' InvitationsGet (Maybe Text)
- igId :: Lens' InvitationsGet Text
- igCallback :: Lens' InvitationsGet (Maybe Text)
REST Resource
type InvitationsGetResource = "v1" :> ("invitations" :> (Capture "id" 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 :> Get '[JSON] Invitation)))))))))) Source #
A resource alias for classroom.invitations.get method which the
InvitationsGet request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> InvitationsGet |
Creates a value of InvitationsGet with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data InvitationsGet Source #
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.
See: invitationsGet smart constructor.
Instances
Request Lenses
igUploadProtocol :: Lens' InvitationsGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
igAccessToken :: Lens' InvitationsGet (Maybe Text) Source #
OAuth access token.
igUploadType :: Lens' InvitationsGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
igBearerToken :: Lens' InvitationsGet (Maybe Text) Source #
OAuth bearer token.
igCallback :: Lens' InvitationsGet (Maybe Text) Source #
JSONP