class Players extends Resource (View source)

The "players" collection of methods.

Typical usage is:

 $gamesService = new Google\Service\Games(...);
 $players = $gamesService->players;

Methods

get(string $playerId, array $optParams = [])

Retrieves the Player resource with the given ID. To retrieve the player for the currently authenticated user, set playerId to me. (players.get)

getMultipleApplicationPlayerIds(array $optParams = [])

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. (players.getMultipleApplicationPlayerIds)

getScopedPlayerIds(array $optParams = [])

Retrieves scoped player identifiers for currently authenticated user.

listPlayers(string $collection, array $optParams = [])

Get the collection of players for the currently authenticated user.

Details

Player get(string $playerId, array $optParams = [])

Retrieves the Player resource with the given ID. To retrieve the player for the currently authenticated user, set playerId to me. (players.get)

Parameters

string $playerId

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

array $optParams

Optional parameters.

Return Value

Player

Exceptions

Exception

GetMultipleApplicationPlayerIdsResponse getMultipleApplicationPlayerIds(array $optParams = [])

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. (players.getMultipleApplicationPlayerIds)

Parameters

array $optParams

Optional parameters.

Return Value

GetMultipleApplicationPlayerIdsResponse

Exceptions

Exception

ScopedPlayerIds getScopedPlayerIds(array $optParams = [])

Retrieves scoped player identifiers for currently authenticated user.

(players.getScopedPlayerIds)

Parameters

array $optParams

Optional parameters.

Return Value

ScopedPlayerIds

Exceptions

Exception

PlayerListResponse listPlayers(string $collection, array $optParams = [])

Get the collection of players for the currently authenticated user.

(players.listPlayers)

Parameters

string $collection

Collection of players being retrieved

array $optParams

Optional parameters.

Return Value

PlayerListResponse

Exceptions

Exception