Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GamesManagement

import { GamesManagement } from "https://googleapis.deno.dev/v1/gamesManagement:v1management.ts";

The Google Play Game Management API allows developers to manage resources from the Google Play Game service.

class GamesManagement {
constructor(client?: CredentialsClient, baseUrl?: string);
async achievementsReset(achievementId: string): Promise<AchievementResetResponse>;
async achievementsResetAll(): Promise<AchievementResetAllResponse>;
async achievementsResetAllForAllPlayers(): Promise<void>;
async achievementsResetForAllPlayers(achievementId: string): Promise<void>;
async achievementsResetMultipleForAllPlayers(req: AchievementResetMultipleForAllRequest): Promise<void>;
async applicationsListHidden(applicationId: string, opts?: ApplicationsListHiddenOptions): Promise<HiddenPlayerList>;
async eventsReset(eventId: string): Promise<void>;
async eventsResetAll(): Promise<void>;
async eventsResetAllForAllPlayers(): Promise<void>;
async eventsResetForAllPlayers(eventId: string): Promise<void>;
async eventsResetMultipleForAllPlayers(req: EventsResetMultipleForAllRequest): Promise<void>;
async playersHide(applicationId: string, playerId: string): Promise<void>;
async playersUnhide(applicationId: string, playerId: string): Promise<void>;
async scoresReset(leaderboardId: string): Promise<PlayerScoreResetResponse>;
async scoresResetAll(): Promise<PlayerScoreResetAllResponse>;
async scoresResetAllForAllPlayers(): Promise<void>;
async scoresResetForAllPlayers(leaderboardId: string): Promise<void>;
async scoresResetMultipleForAllPlayers(req: ScoresResetMultipleForAllRequest): Promise<void>;
}

§Constructors

§
new GamesManagement(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
achievementsReset(achievementId: string): Promise<AchievementResetResponse>
[src]

Resets the achievement with the given ID for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application.

@param achievementId

The ID of the achievement used by this method.

§
achievementsResetAll(): Promise<AchievementResetAllResponse>
[src]

Resets all achievements for the currently authenticated player for your application. This method is only accessible to whitelisted tester accounts for your application.

§
achievementsResetAllForAllPlayers(): Promise<void>
[src]

Resets all draft achievements for all players. This method is only available to user accounts for your developer console.

§
achievementsResetForAllPlayers(achievementId: string): Promise<void>
[src]

Resets the achievement with the given ID for all players. This method is only available to user accounts for your developer console. Only draft achievements can be reset.

@param achievementId

The ID of the achievement used by this method.

§
achievementsResetMultipleForAllPlayers(req: AchievementResetMultipleForAllRequest): Promise<void>
[src]

Resets achievements with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft achievements may be reset.

§
applicationsListHidden(applicationId: string, opts?: ApplicationsListHiddenOptions): Promise<HiddenPlayerList>
[src]

Get the list of players hidden from the given application. This method is only available to user accounts for your developer console.

@param applicationId

The application ID from the Google Play developer console.

§
eventsReset(eventId: string): Promise<void>
[src]

Resets all player progress on the event with the given ID for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application.

@param eventId

The ID of the event.

§
eventsResetAll(): Promise<void>
[src]

Resets all player progress on all events for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application.

§
eventsResetAllForAllPlayers(): Promise<void>
[src]

Resets all draft events for all players. This method is only available to user accounts for your developer console.

§
eventsResetForAllPlayers(eventId: string): Promise<void>
[src]

Resets the event with the given ID for all players. This method is only available to user accounts for your developer console. Only draft events can be reset.

@param eventId

The ID of the event.

§
eventsResetMultipleForAllPlayers(req: EventsResetMultipleForAllRequest): Promise<void>
[src]

Resets events with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft events may be reset.

§
playersHide(applicationId: string, playerId: string): Promise<void>
[src]

Hide the given player's leaderboard scores from the given application. This method is only available to user accounts for your developer console.

@param applicationId

The application ID from the Google Play developer console.

@param playerId

A player ID. A value of me may be used in place of the authenticated player's ID.

§
playersUnhide(applicationId: string, playerId: string): Promise<void>
[src]

Unhide the given player's leaderboard scores from the given application. This method is only available to user accounts for your developer console.

@param applicationId

The application ID from the Google Play developer console.

@param playerId

A player ID. A value of me may be used in place of the authenticated player's ID.

§
scoresReset(leaderboardId: string): Promise<PlayerScoreResetResponse>
[src]

Resets scores for the leaderboard with the given ID for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application.

@param leaderboardId

The ID of the leaderboard.

§
scoresResetAll(): Promise<PlayerScoreResetAllResponse>
[src]

Resets all scores for all leaderboards for the currently authenticated players. This method is only accessible to whitelisted tester accounts for your application.

§
scoresResetAllForAllPlayers(): Promise<void>
[src]

Resets scores for all draft leaderboards for all players. This method is only available to user accounts for your developer console.

§
scoresResetForAllPlayers(leaderboardId: string): Promise<void>
[src]

Resets scores for the leaderboard with the given ID for all players. This method is only available to user accounts for your developer console. Only draft leaderboards can be reset.

@param leaderboardId

The ID of the leaderboard.

§
scoresResetMultipleForAllPlayers(req: ScoresResetMultipleForAllRequest): Promise<void>
[src]

Resets scores for the leaderboards with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft leaderboards may be reset.