verifyIosClient method
- GoogleCloudIdentitytoolkitV1VerifyIosClientRequest request, {
- String? $fields,
Verifies an iOS client is a real iOS device.
If the request is valid, a receipt will be sent in the response and a
secret will be sent via Apple Push Notification Service. The client should
send both of them back to certain Identity Platform APIs in a later call
(for example, /accounts:sendVerificationCode), in order to verify the
client. The bundle ID is required in the request header as
x-ios-bundle-identifier. An
API key is
required in the request in order to identify the Google Cloud project.
request - The metadata request object.
Request parameters:
$fields - Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudIdentitytoolkitV1VerifyIosClientResponse.
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<GoogleCloudIdentitytoolkitV1VerifyIosClientResponse>
verifyIosClient(
  GoogleCloudIdentitytoolkitV1VerifyIosClientRequest request, {
  core.String? $fields,
}) async {
  final body_ = convert.json.encode(request);
  final queryParams_ = <core.String, core.List<core.String>>{
    if ($fields != null) 'fields': [$fields],
  };
  const url_ = 'v1/accounts:verifyIosClient';
  final response_ = await _requester.request(
    url_,
    'POST',
    body: body_,
    queryParams: queryParams_,
  );
  return GoogleCloudIdentitytoolkitV1VerifyIosClientResponse.fromJson(
    response_ as core.Map<core.String, core.dynamic>,
  );
}