Skip to content

Commit 3388962

Browse files
feat(games): update the api
#### games:v1 The following keys were added: - resources.accesstokens.methods.generatePlayGroupingApiToken (Total Keys: 11) - resources.accesstokens.methods.generateRecallPlayGroupingApiToken (Total Keys: 13) - schemas.GeneratePlayGroupingApiTokenResponse (Total Keys: 3) - schemas.GenerateRecallPlayGroupingApiTokenResponse (Total Keys: 3) - schemas.PlayGroupingApiToken (Total Keys: 3)
1 parent fd456c4 commit 3388962

File tree

3 files changed

+237
-1
lines changed

3 files changed

+237
-1
lines changed

docs/dyn/games_v1.accesstokens.html

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
<html><body>
2+
<style>
3+
4+
body, h1, h2, h3, div, span, p, pre, a {
5+
margin: 0;
6+
padding: 0;
7+
border: 0;
8+
font-weight: inherit;
9+
font-style: inherit;
10+
font-size: 100%;
11+
font-family: inherit;
12+
vertical-align: baseline;
13+
}
14+
15+
body {
16+
font-size: 13px;
17+
padding: 1em;
18+
}
19+
20+
h1 {
21+
font-size: 26px;
22+
margin-bottom: 1em;
23+
}
24+
25+
h2 {
26+
font-size: 24px;
27+
margin-bottom: 1em;
28+
}
29+
30+
h3 {
31+
font-size: 20px;
32+
margin-bottom: 1em;
33+
margin-top: 1em;
34+
}
35+
36+
pre, code {
37+
line-height: 1.5;
38+
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39+
}
40+
41+
pre {
42+
margin-top: 0.5em;
43+
}
44+
45+
h1, h2, h3, p {
46+
font-family: Arial, sans serif;
47+
}
48+
49+
h1, h2, h3 {
50+
border-bottom: solid #CCC 1px;
51+
}
52+
53+
.toc_element {
54+
margin-top: 0.5em;
55+
}
56+
57+
.firstline {
58+
margin-left: 2 em;
59+
}
60+
61+
.method {
62+
margin-top: 1em;
63+
border: solid 1px #CCC;
64+
padding: 1em;
65+
background: #EEE;
66+
}
67+
68+
.details {
69+
font-weight: bold;
70+
font-size: 14px;
71+
}
72+
73+
</style>
74+
75+
<h1><a href="games_v1.html">Google Play Game Services</a> . <a href="games_v1.accesstokens.html">accesstokens</a></h1>
76+
<h2>Instance Methods</h2>
77+
<p class="toc_element">
78+
<code><a href="#close">close()</a></code></p>
79+
<p class="firstline">Close httplib2 connections.</p>
80+
<p class="toc_element">
81+
<code><a href="#generatePlayGroupingApiToken">generatePlayGroupingApiToken(packageName=None, persona=None, x__xgafv=None)</a></code></p>
82+
<p class="firstline">Generates a Play Grouping API token for the PGS user identified by the attached credential.</p>
83+
<p class="toc_element">
84+
<code><a href="#generateRecallPlayGroupingApiToken">generateRecallPlayGroupingApiToken(packageName=None, persona=None, recallSessionId=None, x__xgafv=None)</a></code></p>
85+
<p class="firstline">Generates a Play Grouping API token for the PGS user identified by the Recall session ID provided in the request.</p>
86+
<h3>Method Details</h3>
87+
<div class="method">
88+
<code class="details" id="close">close()</code>
89+
<pre>Close httplib2 connections.</pre>
90+
</div>
91+
92+
<div class="method">
93+
<code class="details" id="generatePlayGroupingApiToken">generatePlayGroupingApiToken(packageName=None, persona=None, x__xgafv=None)</code>
94+
<pre>Generates a Play Grouping API token for the PGS user identified by the attached credential.
95+
96+
Args:
97+
packageName: string, Required. App package name to generate the token for (e.g. com.example.mygame).
98+
persona: string, Required. Persona to associate with the token. Persona is a developer-provided stable identifier of the user. Must be deterministically generated (e.g. as a one-way hash) from the user account ID and user profile ID (if the app has the concept), according to the developer&#x27;s own user identity system.
99+
x__xgafv: string, V1 error format.
100+
Allowed values
101+
1 - v1 error format
102+
2 - v2 error format
103+
104+
Returns:
105+
An object of the form:
106+
107+
{ # Response for the GeneratePlayGroupingApiToken RPC.
108+
&quot;token&quot;: { # Token data returned from GeneratePlayGroupingApiToken RPC. # Token for accessing the Play Grouping API.
109+
&quot;tokenValue&quot;: &quot;A String&quot;, # Value of the token.
110+
},
111+
}</pre>
112+
</div>
113+
114+
<div class="method">
115+
<code class="details" id="generateRecallPlayGroupingApiToken">generateRecallPlayGroupingApiToken(packageName=None, persona=None, recallSessionId=None, x__xgafv=None)</code>
116+
<pre>Generates a Play Grouping API token for the PGS user identified by the Recall session ID provided in the request.
117+
118+
Args:
119+
packageName: string, Required. App package name to generate the token for (e.g. com.example.mygame).
120+
persona: string, Required. Persona to associate with the token. Persona is a developer-provided stable identifier of the user. Must be deterministically generated (e.g. as a one-way hash) from the user account ID and user profile ID (if the app has the concept), according to the developer&#x27;s own user identity system.
121+
recallSessionId: string, Required. Opaque server-generated string that encodes all the necessary information to identify the PGS player / Google user and application. See https://developer.android.com/games/pgs/recall/recall-setup on how to integrate with Recall and get session ID.
122+
x__xgafv: string, V1 error format.
123+
Allowed values
124+
1 - v1 error format
125+
2 - v2 error format
126+
127+
Returns:
128+
An object of the form:
129+
130+
{ # Response for the GenerateRecallPlayGroupingApiToken RPC.
131+
&quot;token&quot;: { # Token data returned from GeneratePlayGroupingApiToken RPC. # Token for accessing the Play Grouping API.
132+
&quot;tokenValue&quot;: &quot;A String&quot;, # Value of the token.
133+
},
134+
}</pre>
135+
</div>
136+
137+
</body></html>

docs/dyn/games_v1.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@
7474

7575
<h1><a href="games_v1.html">Google Play Game Services</a></h1>
7676
<h2>Instance Methods</h2>
77+
<p class="toc_element">
78+
<code><a href="games_v1.accesstokens.html">accesstokens()</a></code>
79+
</p>
80+
<p class="firstline">Returns the accesstokens Resource.</p>
81+
7782
<p class="toc_element">
7883
<code><a href="games_v1.achievementDefinitions.html">achievementDefinitions()</a></code>
7984
</p>

googleapiclient/discovery_cache/documents/games.v1.json

Lines changed: 95 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,67 @@
110110
},
111111
"protocol": "rest",
112112
"resources": {
113+
"accesstokens": {
114+
"methods": {
115+
"generatePlayGroupingApiToken": {
116+
"description": "Generates a Play Grouping API token for the PGS user identified by the attached credential.",
117+
"flatPath": "games/v1/accesstokens/generatePlayGroupingApiToken",
118+
"httpMethod": "POST",
119+
"id": "games.accesstokens.generatePlayGroupingApiToken",
120+
"parameterOrder": [],
121+
"parameters": {
122+
"packageName": {
123+
"description": "Required. App package name to generate the token for (e.g. com.example.mygame).",
124+
"location": "query",
125+
"type": "string"
126+
},
127+
"persona": {
128+
"description": "Required. Persona to associate with the token. Persona is a developer-provided stable identifier of the user. Must be deterministically generated (e.g. as a one-way hash) from the user account ID and user profile ID (if the app has the concept), according to the developer's own user identity system.",
129+
"location": "query",
130+
"type": "string"
131+
}
132+
},
133+
"path": "games/v1/accesstokens/generatePlayGroupingApiToken",
134+
"response": {
135+
"$ref": "GeneratePlayGroupingApiTokenResponse"
136+
},
137+
"scopes": [
138+
"https://www.googleapis.com/auth/games"
139+
]
140+
},
141+
"generateRecallPlayGroupingApiToken": {
142+
"description": "Generates a Play Grouping API token for the PGS user identified by the Recall session ID provided in the request.",
143+
"flatPath": "games/v1/accesstokens/generateRecallPlayGroupingApiToken",
144+
"httpMethod": "POST",
145+
"id": "games.accesstokens.generateRecallPlayGroupingApiToken",
146+
"parameterOrder": [],
147+
"parameters": {
148+
"packageName": {
149+
"description": "Required. App package name to generate the token for (e.g. com.example.mygame).",
150+
"location": "query",
151+
"type": "string"
152+
},
153+
"persona": {
154+
"description": "Required. Persona to associate with the token. Persona is a developer-provided stable identifier of the user. Must be deterministically generated (e.g. as a one-way hash) from the user account ID and user profile ID (if the app has the concept), according to the developer's own user identity system.",
155+
"location": "query",
156+
"type": "string"
157+
},
158+
"recallSessionId": {
159+
"description": "Required. Opaque server-generated string that encodes all the necessary information to identify the PGS player / Google user and application. See https://developer.android.com/games/pgs/recall/recall-setup on how to integrate with Recall and get session ID.",
160+
"location": "query",
161+
"type": "string"
162+
}
163+
},
164+
"path": "games/v1/accesstokens/generateRecallPlayGroupingApiToken",
165+
"response": {
166+
"$ref": "GenerateRecallPlayGroupingApiTokenResponse"
167+
},
168+
"scopes": [
169+
"https://www.googleapis.com/auth/androidpublisher"
170+
]
171+
}
172+
}
173+
},
113174
"achievementDefinitions": {
114175
"methods": {
115176
"list": {
@@ -1408,7 +1469,7 @@ false
14081469
}
14091470
}
14101471
},
1411-
"revision": "20240605",
1472+
"revision": "20240618",
14121473
"rootUrl": "https://games.googleapis.com/",
14131474
"schemas": {
14141475
"AchievementDefinition": {
@@ -2217,6 +2278,28 @@ false
22172278
},
22182279
"type": "object"
22192280
},
2281+
"GeneratePlayGroupingApiTokenResponse": {
2282+
"description": "Response for the GeneratePlayGroupingApiToken RPC.",
2283+
"id": "GeneratePlayGroupingApiTokenResponse",
2284+
"properties": {
2285+
"token": {
2286+
"$ref": "PlayGroupingApiToken",
2287+
"description": "Token for accessing the Play Grouping API."
2288+
}
2289+
},
2290+
"type": "object"
2291+
},
2292+
"GenerateRecallPlayGroupingApiTokenResponse": {
2293+
"description": "Response for the GenerateRecallPlayGroupingApiToken RPC.",
2294+
"id": "GenerateRecallPlayGroupingApiTokenResponse",
2295+
"properties": {
2296+
"token": {
2297+
"$ref": "PlayGroupingApiToken",
2298+
"description": "Token for accessing the Play Grouping API."
2299+
}
2300+
},
2301+
"type": "object"
2302+
},
22202303
"GetMultipleApplicationPlayerIdsResponse": {
22212304
"description": "Response message for GetMultipleApplicationPlayerIds rpc.",
22222305
"id": "GetMultipleApplicationPlayerIdsResponse",
@@ -2666,6 +2749,17 @@ false
26662749
},
26672750
"type": "object"
26682751
},
2752+
"PlayGroupingApiToken": {
2753+
"description": "Token data returned from GeneratePlayGroupingApiToken RPC.",
2754+
"id": "PlayGroupingApiToken",
2755+
"properties": {
2756+
"tokenValue": {
2757+
"description": "Value of the token.",
2758+
"type": "string"
2759+
}
2760+
},
2761+
"type": "object"
2762+
},
26692763
"Player": {
26702764
"description": "A Player resource.",
26712765
"id": "Player",

0 commit comments

Comments
 (0)