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 |
See: Google OAuth2 API Reference for oauth2.tokeninfo
.
Synopsis
- type TokenInfoMethod = "oauth2" :> ("v2" :> ("tokeninfo" :> (QueryParam "access_token" Text :> (QueryParam "token_handle" Text :> (QueryParam "id_token" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] TokenInfo))))))
- tokenInfo' :: TokenInfo'
- data TokenInfo'
- tAccessToken :: Lens' TokenInfo' (Maybe Text)
- tTokenHandle :: Lens' TokenInfo' (Maybe Text)
- tIdToken :: Lens' TokenInfo' (Maybe Text)
REST Resource
type TokenInfoMethod = "oauth2" :> ("v2" :> ("tokeninfo" :> (QueryParam "access_token" Text :> (QueryParam "token_handle" Text :> (QueryParam "id_token" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] TokenInfo)))))) Source #
A resource alias for oauth2.tokeninfo
method which the
TokenInfo'
request conforms to.
Creating a Request
tokenInfo' :: TokenInfo' Source #
Creates a value of TokenInfo'
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TokenInfo' Source #
Instances
Request Lenses
tAccessToken :: Lens' TokenInfo' (Maybe Text) Source #
tTokenHandle :: Lens' TokenInfo' (Maybe Text) Source #