| 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.UserProFiles.Get
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.
- 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))))))))))
- userProFilesGet :: Text -> UserProFilesGet
- data UserProFilesGet
- upfgXgafv :: Lens' UserProFilesGet (Maybe Text)
- upfgUploadProtocol :: Lens' UserProFilesGet (Maybe Text)
- upfgPp :: Lens' UserProFilesGet Bool
- upfgAccessToken :: Lens' UserProFilesGet (Maybe Text)
- upfgUploadType :: Lens' UserProFilesGet (Maybe Text)
- upfgUserId :: Lens' UserProFilesGet Text
- upfgBearerToken :: Lens' UserProFilesGet (Maybe Text)
- upfgCallback :: Lens' UserProFilesGet (Maybe Text)
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
Arguments
| :: Text | |
| -> UserProFilesGet |
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.
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
upfgBearerToken :: Lens' UserProFilesGet (Maybe Text) Source #
OAuth bearer token.
upfgCallback :: Lens' UserProFilesGet (Maybe Text) Source #
JSONP