-
Notifications
You must be signed in to change notification settings - Fork 4
/
turnBasedMatches.clj
59 lines (51 loc) · 1.9 KB
/
turnBasedMatches.clj
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
(ns happygapi.gamesManagement.turnBasedMatches
"Google Play Game Services Management API: turnBasedMatches.
The Management API for Google Play Game Services.
See: https://developers.google.com/games/servicesapi/reference/rest/v1management/turnBasedMatches"
(:require [cheshire.core :as json]
[clj-http.client :as http]
[happy.util :as util]))
(defn reset$
"https://developers.google.com/games/servicesapi/reference/rest/v1management/turnBasedMatches/reset
Required parameters: none
Optional parameters: none
Reset all turn-based match data for a user. This method is only accessible to whitelisted tester accounts for your application."
{:scopes ["https://www.googleapis.com/auth/games"]}
[auth parameters]
{:pre [(util/has-keys? parameters #{})]}
(util/get-response
(http/post
(util/get-url
"https://www.googleapis.com/games/v1management/"
"turnbasedmatches/reset"
#{}
parameters)
(merge-with
merge
{:throw-exceptions false,
:query-params parameters,
:accept :json,
:as :json}
auth))))
(defn resetForAllPlayers$
"https://developers.google.com/games/servicesapi/reference/rest/v1management/turnBasedMatches/resetForAllPlayers
Required parameters: none
Optional parameters: none
Deletes turn-based matches where the only match participants are from whitelisted tester accounts for your application. This method is only available to user accounts for your developer console."
{:scopes ["https://www.googleapis.com/auth/games"]}
[auth parameters]
{:pre [(util/has-keys? parameters #{})]}
(util/get-response
(http/post
(util/get-url
"https://www.googleapis.com/games/v1management/"
"turnbasedmatches/resetForAllPlayers"
#{}
parameters)
(merge-with
merge
{:throw-exceptions false,
:query-params parameters,
:accept :json,
:as :json}
auth))))