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 |
Generates a token (activation code) to allow this user to configure their managed account in the Android Setup Wizard. Revokes any previously generated token. This call only works with Google managed accounts.
See: Google Play EMM API Reference for androidenterprise.users.generateToken
.
Synopsis
- type UsersGenerateTokenResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("token" :> (QueryParam "alt" AltJSON :> Post '[JSON] UserToken)))))))
- usersGenerateToken :: Text -> Text -> UsersGenerateToken
- data UsersGenerateToken
- ugtEnterpriseId :: Lens' UsersGenerateToken Text
- ugtUserId :: Lens' UsersGenerateToken Text
REST Resource
type UsersGenerateTokenResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("token" :> (QueryParam "alt" AltJSON :> Post '[JSON] UserToken))))))) Source #
A resource alias for androidenterprise.users.generateToken
method which the
UsersGenerateToken
request conforms to.
Creating a Request
Creates a value of UsersGenerateToken
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersGenerateToken Source #
Generates a token (activation code) to allow this user to configure their managed account in the Android Setup Wizard. Revokes any previously generated token. This call only works with Google managed accounts.
See: usersGenerateToken
smart constructor.
Instances
Request Lenses
ugtEnterpriseId :: Lens' UsersGenerateToken Text Source #
The ID of the enterprise.