getEndPoint method

Future<EndPoint> getEndPoint({
  1. String? applicationId,
  2. String? endPointType,
  3. String? $fields,
})

Returns a URL for the requested end point type.

Request parameters:

applicationId - The application ID from the Google Play developer console.

endPointType - Type of endpoint being requested. Possible string values are:

  • "PROFILE_CREATION" : Request a URL to create a new profile.
  • "PROFILE_SETTINGS" : Request a URL for the Settings view.

$fields - Selector specifying which fields to include in a partial response.

Completes with a EndPoint.

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<EndPoint> getEndPoint({
  core.String? applicationId,
  core.String? endPointType,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (applicationId != null) 'applicationId': [applicationId],
    if (endPointType != null) 'endPointType': [endPointType],
    if ($fields != null) 'fields': [$fields],
  };

  const url_ = 'games/v1/applications/getEndPoint';

  final response_ = await _requester.request(
    url_,
    'POST',
    queryParams: queryParams_,
  );
  return EndPoint.fromJson(response_ as core.Map<core.String, core.dynamic>);
}