class Games extends Service (View source)

Service definition for Games (v1).

The Google Play games service allows developers to enhance games with social leaderboards, achievements, game state, sign-in with Google, and more.

For more information about this service, see the API Documentation

Constants

ANDROIDPUBLISHER

View and manage your Google Play Developer account.

DRIVE_APPDATA

See, create, and delete its own configuration data in your Google Drive.

GAMES

Create, edit, and delete your Google Play Games activity.

Properties

$accesstokens
$achievementDefinitions
$achievements
$applications
$events
$leaderboards
$metagame
$players
$recall
$revisions
$scores
$snapshots
$stats
$rootUrlTemplate

Methods

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the Games service.

Details

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the Games service.

Parameters

Client|array $clientOrConfig

The client used to deliver requests, or a config array to pass to a new Client instance.

string $rootUrl

The root URL used for requests to the service.