-
Notifications
You must be signed in to change notification settings - Fork 4
/
managedconfigurationssettings.clj
32 lines (29 loc) · 1.17 KB
/
managedconfigurationssettings.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.androidenterprise.managedconfigurationssettings
"Google Play EMM API: managedconfigurationssettings.
Manages the deployment of apps to Android for Work users.
See: https://developers.google.com/android/work/play/emm-apiapi/reference/rest/v1/managedconfigurationssettings"
(:require [cheshire.core :as json]
[clj-http.client :as http]
[happy.util :as util]))
(defn list$
"https://developers.google.com/android/work/play/emm-apiapi/reference/rest/v1/managedconfigurationssettings/list
Required parameters: enterpriseId, productId
Optional parameters: none
Lists all the managed configurations settings for the specified app."
{:scopes ["https://www.googleapis.com/auth/androidenterprise"]}
[auth args]
{:pre [(util/has-keys? args #{:enterpriseId :productId})]}
(util/get-response
(http/get
(util/get-url
"https://www.googleapis.com/androidenterprise/v1/"
"enterprises/{enterpriseId}/products/{productId}/managedConfigurationsSettings"
#{:enterpriseId :productId}
args)
(merge-with
merge
{:throw-exceptions false,
:query-params args,
:accept :json,
:as :json}
auth))))