Games
import { Games } from "https://googleapis.deno.dev/v1/games:v1.ts";
The Google Play games service allows developers to enhance games with social leaderboards, achievements, game state, sign-in with Google, and more.
§Methods
Lists all the achievement definitions for your application.
Increments the steps of the achievement with the given ID for the currently authenticated player.
The ID of the achievement used by this method.
Lists the progress for all your application's achievements for the currently authenticated player.
A player ID. A value of me
may be used in place of the authenticated player's ID.
Sets the state of the achievement with the given ID to REVEALED
for the
currently authenticated player.
The ID of the achievement used by this method.
Sets the steps for the currently authenticated player towards unlocking an achievement. If the steps parameter is less than the current number of steps that the player already gained for the achievement, the achievement is not modified.
The ID of the achievement used by this method.
Unlocks this achievement for the currently authenticated player.
The ID of the achievement used by this method.
Updates multiple achievements for the currently authenticated player.
Retrieves the metadata of the application with the given ID. If the
requested application is not available for the specified platformType
,
the returned response will not include any instance data.
The application ID from the Google Play developer console.
Returns a URL for the requested end point type.
Indicate that the currently authenticated user is playing your application.
Verifies the auth token provided with this request is for the application with the specified ID, and returns the ID of the player it was granted for.
The application ID from the Google Play developer console.
Returns a list showing the current progress on events in this application for the currently authenticated user.
Returns a list of the event definitions in this application.
Records a batch of changes to the number of times events have occurred for the currently authenticated user of this application.
Retrieves the metadata of the leaderboard with the given ID.
The ID of the leaderboard.
Lists all the leaderboard metadata for your application.
Return the metagame configuration data for the calling application.
List play data aggregated per category for the player corresponding to
playerId
.
The collection of categories for which data will be returned.
A player ID. A value of me
may be used in place of the authenticated player's ID.
Retrieves the Player resource with the given ID. To retrieve the player
for the currently authenticated user, set playerId
to me
.
A player ID. A value of me
may be used in place of the authenticated player's ID.
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.
Retrieves scoped player identifiers for currently authenticated user.
Get the collection of players for the currently authenticated user.
Collection of players being retrieved
Retrieve the last Recall token from all developer games that is associated with the PGS Player principal encoded in the provided recall session id. The API is only available for users that have active PGS Player profile.
Required. Opaque server-generated string that encodes all the necessary information to identify the PGS player / Google user and application.
Associate the PGS Player principal encoded in the provided recall session id with an in-game account
Delete all Recall tokens linking the given persona to any player (with or without a profile).
Retrieve all Recall tokens associated with the PGS Player principal encoded in the provided recall session id. The API is only available for users that have active PGS Player profile.
Required. Opaque server-generated string that encodes all the necessary information to identify the PGS player / Google user and application.
Delete a Recall token linking the PGS Player principal identified by the Recall session and an in-game account identified either by the 'persona' or by the token value.
Checks whether the games client is out of date.
Get high scores, and optionally ranks, in leaderboards for the currently
authenticated player. For a specific time span, leaderboardId
can be set
to ALL
to retrieve data for all leaderboards in a given time span. `NOTE:
You cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in the same
request; only one parameter may be set to 'ALL'.
The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all leaderboards for this application.
A player ID. A value of me
may be used in place of the authenticated player's ID.
The time span for the scores and ranks you're requesting.
Lists the scores in a leaderboard, starting from the top.
The collection of scores you're requesting.
The ID of the leaderboard.
Lists the scores in a leaderboard around (and including) a player's score.
The collection of scores you're requesting.
The ID of the leaderboard.
Submits multiple scores to leaderboards.
Retrieves a list of snapshots created by your application for the player corresponding to the player ID.
A player ID. A value of me
may be used in place of the authenticated player's ID.
Returns engagement and spend statistics in this application for the currently authenticated user.