-
Notifications
You must be signed in to change notification settings - Fork 4
/
signupUrls.clj
32 lines (29 loc) · 998 Bytes
/
signupUrls.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
(ns happygapi.androidmanagement.signupUrls
"Android Management API: signupUrls.
The Android Management API provides remote enterprise management of Android devices and apps.
See: https://developers.google.com/android/managementapi/reference/rest/v1/signupUrls"
(:require [cheshire.core :as json]
[clj-http.client :as http]
[happy.util :as util]))
(defn create$
"https://developers.google.com/android/managementapi/reference/rest/v1/signupUrls/create
Required parameters: none
Optional parameters: projectId, callbackUrl
Creates an enterprise signup URL."
{:scopes ["https://www.googleapis.com/auth/androidmanagement"]}
[auth args]
{:pre [(util/has-keys? args #{})]}
(util/get-response
(http/post
(util/get-url
"https://androidmanagement.googleapis.com/"
"v1/signupUrls"
#{}
args)
(merge-with
merge
{:throw-exceptions false,
:query-params args,
:accept :json,
:as :json}
auth))))