Players
class Players extends Resource (View source)
The "players" collection of methods.
Typical usage is:
$gamesService = new Google\Service\Games(...);
$players = $gamesService->players;
Methods
Retrieves the Player resource with the given ID. To retrieve the player for
the currently authenticated user, set playerId
to me
. (players.get)
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)
Retrieves scoped player identifiers for currently authenticated user.
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)
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)
ScopedPlayerIds
getScopedPlayerIds(array $optParams = [])
Retrieves scoped player identifiers for currently authenticated user.
(players.getScopedPlayerIds)
PlayerListResponse
listPlayers(string $collection, array $optParams = [])
Get the collection of players for the currently authenticated user.
(players.listPlayers)