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 user profile. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access this user profile, if no profile exists with the requested ID, or for access errors.
See: Google Classroom API Reference for classroom.userProfiles.get
.
Synopsis
- type UserProFilesGetResource = "v1" :> ("userProfiles" :> (Capture "userId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] UserProFile))))))))
- userProFilesGet :: Text -> UserProFilesGet
- data UserProFilesGet
- upfgXgafv :: Lens' UserProFilesGet (Maybe Xgafv)
- upfgUploadProtocol :: Lens' UserProFilesGet (Maybe Text)
- upfgAccessToken :: Lens' UserProFilesGet (Maybe Text)
- upfgUploadType :: Lens' UserProFilesGet (Maybe Text)
- upfgUserId :: Lens' UserProFilesGet Text
- upfgCallback :: Lens' UserProFilesGet (Maybe Text)
REST Resource
type UserProFilesGetResource = "v1" :> ("userProfiles" :> (Capture "userId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" 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
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, if no profile exists with the requested ID, or for access errors.
See: userProFilesGet
smart constructor.
Instances
Request Lenses
upfgUploadProtocol :: Lens' UserProFilesGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
upfgAccessToken :: Lens' UserProFilesGet (Maybe Text) Source #
OAuth access token.
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
upfgCallback :: Lens' UserProFilesGet (Maybe Text) Source #
JSONP