Copyright | (c) 2015 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 |
Gets the current user's Gmail profile.
See: Gmail API Reference for gmail.users.getProfile
.
- type UsersGetProFileResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("profile" :> (QueryParam "alt" AltJSON :> Get `[JSON]` ProFile)))))
- usersGetProFile :: Text -> UsersGetProFile
- data UsersGetProFile
- ugpfUserId :: Lens' UsersGetProFile Text
REST Resource
type UsersGetProFileResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("profile" :> (QueryParam "alt" AltJSON :> Get `[JSON]` ProFile))))) Source
A resource alias for gmail.users.getProfile
method which the
UsersGetProFile
request conforms to.
Creating a Request
usersGetProFile :: Text -> UsersGetProFile Source
Creates a value of UsersGetProFile
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersGetProFile Source
Gets the current user's Gmail profile.
See: usersGetProFile
smart constructor.
Request Lenses
ugpfUserId :: Lens' UsersGetProFile Text Source
The user's email address. The special value me can be used to indicate the authenticated user.