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 sign-up URL.
See: Google Play EMM API Reference for androidenterprise.enterprises.generateSignupUrl
.
Synopsis
- type EnterprisesGenerateSignupURLResource = "androidenterprise" :> ("v1" :> ("enterprises" :> ("signupUrl" :> (QueryParam "callbackUrl" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] SignupInfo)))))
- enterprisesGenerateSignupURL :: EnterprisesGenerateSignupURL
- data EnterprisesGenerateSignupURL
- egsuCallbackURL :: Lens' EnterprisesGenerateSignupURL (Maybe Text)
REST Resource
type EnterprisesGenerateSignupURLResource = "androidenterprise" :> ("v1" :> ("enterprises" :> ("signupUrl" :> (QueryParam "callbackUrl" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] SignupInfo))))) Source #
A resource alias for androidenterprise.enterprises.generateSignupUrl
method which the
EnterprisesGenerateSignupURL
request conforms to.
Creating a Request
enterprisesGenerateSignupURL :: EnterprisesGenerateSignupURL Source #
Creates a value of EnterprisesGenerateSignupURL
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data EnterprisesGenerateSignupURL Source #
Generates a sign-up URL.
See: enterprisesGenerateSignupURL
smart constructor.
Instances
Request Lenses
egsuCallbackURL :: Lens' EnterprisesGenerateSignupURL (Maybe Text) Source #
The callback URL to which the Admin will be redirected after successfully creating an enterprise. Before redirecting there the system will add a single query parameter to this URL named "enterpriseToken" which will contain an opaque token to be used for the CompleteSignup request. Beware that this means that the URL will be parsed, the parameter added and then a new URL formatted, i.e. there may be some minor formatting changes and, more importantly, the URL must be well-formed so that it can be parsed.