Skip to main content

players

Overview

Nameplayers
TypeResource
Idgoogledevelopers.games.players

Fields

NameDatatypeDescription
nameobjectA representation of the individual components of the name.
friendStatusstringThe friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
bannerUrlLandscapestringThe url to the landscape mode player banner image.
avatarImageUrlstringThe base URL for the image that represents the player.
displayNamestringThe name to display for the player.
gamePlayerIdstringPer-application unique player identifier.
titlestringThe player's title rewarded for their game activities.
bannerUrlPortraitstringThe url to the portrait mode player banner image.
experienceInfoobject1P/3P metadata about the player's experience.
originalPlayerIdstringThe player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
kindstringUniquely identifies the type of this resource. Value is always the fixed string games#player
playerIdstringThe ID of the player.
profileSettingsobjectProfile settings

Methods

NameAccessible byRequired ParamsDescription
getSELECTplayerIdRetrieves the Player resource with the given ID. To retrieve the player for the currently authenticated user, set playerId to me.
listSELECTcollectionGet the collection of players for the currently authenticated user.