getMultipleApplicationPlayerIds method
Get the application player ids for the currently authenticated player across all requested games by the same developer as the calling application.
This will only return ids for players that actually have an id (scoped or otherwise) with that game.
Request parameters:
applicationIds
- Required. The application IDs from the Google Play
developer console for the games to return scoped ids for.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GetMultipleApplicationPlayerIdsResponse.
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<GetMultipleApplicationPlayerIdsResponse>
getMultipleApplicationPlayerIds({
core.List<core.String>? applicationIds,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (applicationIds != null) 'applicationIds': applicationIds,
if ($fields != null) 'fields': [$fields],
};
const url_ = 'games/v1/players/me/multipleApplicationPlayerIds';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GetMultipleApplicationPlayerIdsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}