Skip to content

Commit c478472

Browse files
feat(games): update the api
#### games:v1 The following keys were added: - resources.players.methods.getScopedPlayerIds (Total Keys: 7) - schemas.ScopedPlayerIds (Total Keys: 4)
1 parent 44b4f14 commit c478472

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed

docs/dyn/games_v1.players.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ <h2>Instance Methods</h2>
8080
<p class="toc_element">
8181
<code><a href="#get">get(playerId, language=None, playerIdConsistencyToken=None, x__xgafv=None)</a></code></p>
8282
<p class="firstline">Retrieves the Player resource with the given ID. To retrieve the player for the currently authenticated user, set `playerId` to `me`.</p>
83+
<p class="toc_element">
84+
<code><a href="#getScopedPlayerIds">getScopedPlayerIds(x__xgafv=None)</a></code></p>
85+
<p class="firstline">Retrieves scoped player identifiers for currently authenticated user.</p>
8386
<p class="toc_element">
8487
<code><a href="#list">list(collection, language=None, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
8588
<p class="firstline">Get the collection of players for the currently authenticated user.</p>
@@ -148,6 +151,25 @@ <h3>Method Details</h3>
148151
}</pre>
149152
</div>
150153

154+
<div class="method">
155+
<code class="details" id="getScopedPlayerIds">getScopedPlayerIds(x__xgafv=None)</code>
156+
<pre>Retrieves scoped player identifiers for currently authenticated user.
157+
158+
Args:
159+
x__xgafv: string, V1 error format.
160+
Allowed values
161+
1 - v1 error format
162+
2 - v2 error format
163+
164+
Returns:
165+
An object of the form:
166+
167+
{ # Scoped player identifiers.
168+
&quot;developerPlayerKey&quot;: &quot;A String&quot;, # Identifier of the player across all games of the given developer. Every player has the same developer_player_key in all games of one developer. Developer player key changes for the game if the game is transferred to another developer. Note that game_player_id will stay unchanged.
169+
&quot;gamePlayerId&quot;: &quot;A String&quot;, # Game-scoped player identifier. This is the same id that is returned in GetPlayer game_player_id field.
170+
}</pre>
171+
</div>
172+
151173
<div class="method">
152174
<code class="details" id="list">list(collection, language=None, maxResults=None, pageToken=None, x__xgafv=None)</code>
153175
<pre>Get the collection of players for the currently authenticated user.

googleapiclient/discovery_cache/documents/games.v1.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,21 @@
729729
"https://www.googleapis.com/auth/games"
730730
]
731731
},
732+
"getScopedPlayerIds": {
733+
"description": "Retrieves scoped player identifiers for currently authenticated user.",
734+
"flatPath": "games/v1/players/me/scopedIds",
735+
"httpMethod": "GET",
736+
"id": "games.players.getScopedPlayerIds",
737+
"parameterOrder": [],
738+
"parameters": {},
739+
"path": "games/v1/players/me/scopedIds",
740+
"response": {
741+
"$ref": "ScopedPlayerIds"
742+
},
743+
"scopes": [
744+
"https://www.googleapis.com/auth/games"
745+
]
746+
},
732747
"list": {
733748
"description": "Get the collection of players for the currently authenticated user.",
734749
"flatPath": "games/v1/players/me/players/{collection}",
@@ -1229,7 +1244,7 @@
12291244
}
12301245
}
12311246
},
1232-
"revision": "20220504",
1247+
"revision": "20220525",
12331248
"rootUrl": "https://games.googleapis.com/",
12341249
"schemas": {
12351250
"AchievementDefinition": {
@@ -2943,6 +2958,21 @@
29432958
},
29442959
"type": "object"
29452960
},
2961+
"ScopedPlayerIds": {
2962+
"description": "Scoped player identifiers.",
2963+
"id": "ScopedPlayerIds",
2964+
"properties": {
2965+
"developerPlayerKey": {
2966+
"description": "Identifier of the player across all games of the given developer. Every player has the same developer_player_key in all games of one developer. Developer player key changes for the game if the game is transferred to another developer. Note that game_player_id will stay unchanged.",
2967+
"type": "string"
2968+
},
2969+
"gamePlayerId": {
2970+
"description": "Game-scoped player identifier. This is the same id that is returned in GetPlayer game_player_id field.",
2971+
"type": "string"
2972+
}
2973+
},
2974+
"type": "object"
2975+
},
29462976
"ScoreSubmission": {
29472977
"description": "A request to submit a score to leaderboards.",
29482978
"id": "ScoreSubmission",

0 commit comments

Comments
 (0)