gamesPlayerTokens method
Retrieve the Recall tokens from all requested games that is associated with the PGS Player encoded in the provided recall session id.
The API is only available for users that have an active PGS Player profile.
Request parameters:
sessionId
- Required. Opaque server-generated string that encodes all
the necessary information to identify the PGS player / Google user and
application.
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 RetrieveGamesPlayerTokensResponse.
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<RetrieveGamesPlayerTokensResponse> gamesPlayerTokens(
core.String sessionId, {
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],
};
final url_ = 'games/v1/recall/gamesPlayerTokens/' +
commons.escapeVariable('$sessionId');
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return RetrieveGamesPlayerTokensResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}