-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
appstate-api.json
307 lines (307 loc) · 10.3 KB
/
appstate-api.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
{
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/appstate": {
"description": "View and manage your data for this application"
}
}
}
},
"basePath": "/appstate/v1/",
"baseUrl": "https://www.googleapis.com/appstate/v1/",
"batchPath": "batch/appstate/v1",
"canonicalName": "App State",
"description": "The Google App State API.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/games/services/web/api/states",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/c8SO732Ao1od3rR5fyJkiapZkf8\"",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"id": "appstate:v1",
"kind": "discovery#restDescription",
"name": "appstate",
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
"alt": {
"default": "json",
"description": "Data format for the response.",
"enum": [
"json"
],
"enumDescriptions": [
"Responses with Content-Type of application/json"
],
"location": "query",
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"location": "query",
"type": "string"
},
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"location": "query",
"type": "string"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"location": "query",
"type": "string"
},
"prettyPrint": {
"default": "true",
"description": "Returns response with indentations and line breaks.",
"location": "query",
"type": "boolean"
},
"quotaUser": {
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
},
"protocol": "rest",
"resources": {
"states": {
"methods": {
"clear": {
"description": "Clears (sets to empty) the data for the passed key if and only if the passed version matches the currently stored version. This method results in a conflict error on version mismatch.",
"httpMethod": "POST",
"id": "appstate.states.clear",
"parameterOrder": [
"stateKey"
],
"parameters": {
"currentDataVersion": {
"description": "The version of the data to be cleared. Version strings are returned by the server.",
"location": "query",
"type": "string"
},
"stateKey": {
"description": "The key for the data to be retrieved.",
"format": "int32",
"location": "path",
"maximum": "3",
"minimum": "0",
"required": true,
"type": "integer"
}
},
"path": "states/{stateKey}/clear",
"response": {
"$ref": "WriteResult"
},
"scopes": [
"https://www.googleapis.com/auth/appstate"
]
},
"delete": {
"description": "Deletes a key and the data associated with it. The key is removed and no longer counts against the key quota. Note that since this method is not safe in the face of concurrent modifications, it should only be used for development and testing purposes. Invoking this method in shipping code can result in data loss and data corruption.",
"httpMethod": "DELETE",
"id": "appstate.states.delete",
"parameterOrder": [
"stateKey"
],
"parameters": {
"stateKey": {
"description": "The key for the data to be retrieved.",
"format": "int32",
"location": "path",
"maximum": "3",
"minimum": "0",
"required": true,
"type": "integer"
}
},
"path": "states/{stateKey}",
"scopes": [
"https://www.googleapis.com/auth/appstate"
]
},
"get": {
"description": "Retrieves the data corresponding to the passed key. If the key does not exist on the server, an HTTP 404 will be returned.",
"httpMethod": "GET",
"id": "appstate.states.get",
"parameterOrder": [
"stateKey"
],
"parameters": {
"stateKey": {
"description": "The key for the data to be retrieved.",
"format": "int32",
"location": "path",
"maximum": "3",
"minimum": "0",
"required": true,
"type": "integer"
}
},
"path": "states/{stateKey}",
"response": {
"$ref": "GetResponse"
},
"scopes": [
"https://www.googleapis.com/auth/appstate"
]
},
"list": {
"description": "Lists all the states keys, and optionally the state data.",
"httpMethod": "GET",
"id": "appstate.states.list",
"parameters": {
"includeData": {
"default": "false",
"description": "Whether to include the full data in addition to the version number",
"location": "query",
"type": "boolean"
}
},
"path": "states",
"response": {
"$ref": "ListResponse"
},
"scopes": [
"https://www.googleapis.com/auth/appstate"
]
},
"update": {
"description": "Update the data associated with the input key if and only if the passed version matches the currently stored version. This method is safe in the face of concurrent writes. Maximum per-key size is 128KB.",
"httpMethod": "PUT",
"id": "appstate.states.update",
"parameterOrder": [
"stateKey"
],
"parameters": {
"currentStateVersion": {
"description": "The version of the app state your application is attempting to update. If this does not match the current version, this method will return a conflict error. If there is no data stored on the server for this key, the update will succeed irrespective of the value of this parameter.",
"location": "query",
"type": "string"
},
"stateKey": {
"description": "The key for the data to be retrieved.",
"format": "int32",
"location": "path",
"maximum": "3",
"minimum": "0",
"required": true,
"type": "integer"
}
},
"path": "states/{stateKey}",
"request": {
"$ref": "UpdateRequest"
},
"response": {
"$ref": "WriteResult"
},
"scopes": [
"https://www.googleapis.com/auth/appstate"
]
}
}
}
},
"revision": "20180417",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"GetResponse": {
"description": "This is a JSON template for an app state resource.",
"id": "GetResponse",
"properties": {
"currentStateVersion": {
"description": "The current app state version.",
"type": "string"
},
"data": {
"description": "The requested data.",
"type": "string"
},
"kind": {
"default": "appstate#getResponse",
"description": "Uniquely identifies the type of this resource. Value is always the fixed string appstate#getResponse.",
"type": "string"
},
"stateKey": {
"description": "The key for the data.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"ListResponse": {
"description": "This is a JSON template to convert a list-response for app state.",
"id": "ListResponse",
"properties": {
"items": {
"description": "The app state data.",
"items": {
"$ref": "GetResponse"
},
"type": "array"
},
"kind": {
"default": "appstate#listResponse",
"description": "Uniquely identifies the type of this resource. Value is always the fixed string appstate#listResponse.",
"type": "string"
},
"maximumKeyCount": {
"description": "The maximum number of keys allowed for this user.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"UpdateRequest": {
"description": "This is a JSON template for a requests which update app state",
"id": "UpdateRequest",
"properties": {
"data": {
"description": "The new app state data that your application is trying to update with.",
"type": "string"
},
"kind": {
"default": "appstate#updateRequest",
"description": "Uniquely identifies the type of this resource. Value is always the fixed string appstate#updateRequest.",
"type": "string"
}
},
"type": "object"
},
"WriteResult": {
"description": "This is a JSON template for an app state write result.",
"id": "WriteResult",
"properties": {
"currentStateVersion": {
"description": "The version of the data for this key on the server.",
"type": "string"
},
"kind": {
"default": "appstate#writeResult",
"description": "Uniquely identifies the type of this resource. Value is always the fixed string appstate#writeResult.",
"type": "string"
},
"stateKey": {
"description": "The written key.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
}
},
"servicePath": "appstate/v1/",
"title": "Google App State API",
"version": "v1"
}