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.UserProFiles.Get

Contents

Description

Returns a user profile. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access this user profile or if no profile exists with the requested ID or for access errors.

See: Google Classroom API Reference for classroom.userProfiles.get.

Synopsis

REST Resource

type UserProFilesGetResource = "v1" :> ("userProfiles" :> (Capture "userId" 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]` UserProFile)))))))))) Source

A resource alias for classroom.userProfiles.get method which the UserProFilesGet request conforms to.

Creating a Request

userProFilesGet Source

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

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

data UserProFilesGet Source

Returns a user profile. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access this user profile or if no profile exists with the requested ID or for access errors.

See: userProFilesGet smart constructor.

Request Lenses

upfgUploadProtocol :: Lens' UserProFilesGet (Maybe Text) Source

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

upfgPp :: Lens' UserProFilesGet Bool Source

Pretty-print response.

upfgUploadType :: Lens' UserProFilesGet (Maybe Text) Source

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

upfgUserId :: Lens' UserProFilesGet Text Source

Identifier of the profile to return. 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