completeSignup method
Completes the signup flow, by specifying the Completion token and Enterprise token.
This request must not be called multiple times for a given Enterprise Token.
Request parameters:
completionToken
- The Completion token initially returned by
GenerateSignupUrl.
enterpriseToken
- The Enterprise token appended to the Callback URL.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a Enterprise.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client
completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<Enterprise> completeSignup({
core.String? completionToken,
core.String? enterpriseToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (completionToken != null) 'completionToken': [completionToken],
if (enterpriseToken != null) 'enterpriseToken': [enterpriseToken],
if ($fields != null) 'fields': [$fields],
};
const url_ = 'androidenterprise/v1/enterprises/completeSignup';
final response_ = await _requester.request(
url_,
'POST',
queryParams: queryParams_,
);
return Enterprise.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}