-
Notifications
You must be signed in to change notification settings - Fork 4
/
grouplicenseusers.clj
32 lines (29 loc) · 1.14 KB
/
grouplicenseusers.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.grouplicenseusers
"Google Play EMM API: grouplicenseusers.
Manages the deployment of apps to Android for Work users.
See: https://developers.google.com/android/work/play/emm-apiapi/reference/rest/v1/grouplicenseusers"
(: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/grouplicenseusers/list
Required parameters: enterpriseId, groupLicenseId
Optional parameters: none
Retrieves the IDs of the users who have been granted entitlements under the license."
{:scopes ["https://www.googleapis.com/auth/androidenterprise"]}
[auth args]
{:pre [(util/has-keys? args #{:enterpriseId :groupLicenseId})]}
(util/get-response
(http/get
(util/get-url
"https://www.googleapis.com/androidenterprise/v1/"
"enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users"
#{:enterpriseId :groupLicenseId}
args)
(merge-with
merge
{:throw-exceptions false,
:query-params args,
:accept :json,
:as :json}
auth))))