-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathappsmarket-api.json
More file actions
283 lines (283 loc) · 9.06 KB
/
appsmarket-api.json
File metadata and controls
283 lines (283 loc) · 9.06 KB
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
{
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/appsmarketplace.license": {
"description": "View your installed application's licensing information"
}
}
}
},
"basePath": "",
"baseUrl": "https://appsmarket.googleapis.com/",
"batchPath": "batch",
"canonicalName": "G Suite Marketplace API",
"description": "Lets your Google Workspace Marketplace applications integrate with Google's installtion and licensing services. ",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/workspace/marketplace",
"fullyEncodeReservedExpansion": true,
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"id": "appsmarket:v2",
"kind": "discovery#restDescription",
"mtlsRootUrl": "https://appsmarket.mtls.googleapis.com/",
"name": "appsmarket",
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
"$.xgafv": {
"description": "V1 error format.",
"enum": [
"1",
"2"
],
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"location": "query",
"type": "string"
},
"alt": {
"default": "json",
"description": "Data format for response.",
"enum": [
"json",
"media",
"proto"
],
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"type": "string"
},
"callback": {
"description": "JSONP",
"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": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"location": "query",
"type": "string"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
"type": "string"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query",
"type": "string"
}
},
"protocol": "rest",
"resources": {
"customerLicense": {
"methods": {
"get": {
"description": "Gets the customer's licensing status to determine if they have access to a given app. For more information, see [Getting app installation and licensing details](https://developers.google.com/workspace/marketplace/example-calls-marketplace-api).",
"flatPath": "appsmarket/v2/customerLicense/{applicationId}/{customerId}",
"httpMethod": "GET",
"id": "appsmarket.customerLicense.get",
"parameterOrder": [
"applicationId",
"customerId"
],
"parameters": {
"applicationId": {
"description": "The ID of the application.",
"location": "path",
"required": true,
"type": "string"
},
"customerId": {
"description": "The ID of the customer.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "appsmarket/v2/customerLicense/{applicationId}/{customerId}",
"response": {
"$ref": "CustomerLicense"
},
"scopes": [
"https://www.googleapis.com/auth/appsmarketplace.license"
]
}
}
},
"userLicense": {
"methods": {
"get": {
"description": "Gets the user's licensing status to determine if they have permission to use a given app. For more information, see [Getting app installation and licensing details](https://developers.google.com/workspace/marketplace/example-calls-marketplace-api).",
"flatPath": "appsmarket/v2/userLicense/{applicationId}/{userId}",
"httpMethod": "GET",
"id": "appsmarket.userLicense.get",
"parameterOrder": [
"applicationId",
"userId"
],
"parameters": {
"applicationId": {
"description": "The ID of the application.",
"location": "path",
"required": true,
"type": "string"
},
"userId": {
"description": "The ID of the user.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "appsmarket/v2/userLicense/{applicationId}/{userId}",
"response": {
"$ref": "UserLicense"
},
"scopes": [
"https://www.googleapis.com/auth/appsmarketplace.license"
]
}
}
}
},
"revision": "20260209",
"rootUrl": "https://appsmarket.googleapis.com/",
"schemas": {
"CustomerLicense": {
"id": "CustomerLicense",
"properties": {
"applicationId": {
"description": "The ID of the application corresponding to this license query.",
"type": "string"
},
"customerId": {
"description": "The domain name of the customer.",
"type": "string"
},
"editions": {
"deprecated": true,
"description": "(Deprecated)",
"items": {
"$ref": "Editions"
},
"type": "array"
},
"id": {
"description": "The ID of the customer license.",
"type": "string"
},
"kind": {
"description": "The type of API resource. This is always `appsmarket#customerLicense`.",
"type": "string"
},
"state": {
"description": "The customer's license status. One of: - `ACTIVE`: The customer has a valid license. - `UNLICENSED`: There is no license. Either this customer has never installed your application or has deleted it.",
"type": "string"
}
},
"type": "object"
},
"Editions": {
"id": "Editions",
"properties": {
"assignedSeats": {
"deprecated": true,
"description": "(Deprecated)",
"format": "int32",
"type": "integer"
},
"editionId": {
"deprecated": true,
"description": "(Deprecated)",
"type": "string"
},
"seatCount": {
"deprecated": true,
"description": "(Deprecated)",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"UserLicense": {
"id": "UserLicense",
"properties": {
"applicationId": {
"description": "The ID of the application corresponding to the license query.",
"type": "string"
},
"customerId": {
"description": "The domain name of the user.",
"type": "string"
},
"editionId": {
"deprecated": true,
"description": "(Deprecated)",
"type": "string"
},
"enabled": {
"description": "The domain administrator has activated the application for this domain.",
"type": "boolean"
},
"id": {
"description": "The ID of the user license.",
"type": "string"
},
"kind": {
"description": "The type of API resource. This is always `appsmarket#userLicense`.",
"type": "string"
},
"state": {
"description": "The user's licensing status. One of: - `ACTIVE`: The user has a valid license and should be permitted to use the application. - `UNLICENSED`: The administrator of this user's domain never assigned a seat for the application to this user. - `EXPIRED`: The administrator assigned a seat to this user, but the license is expired.",
"type": "string"
},
"userId": {
"description": "The email address of the user.",
"type": "string"
}
},
"type": "object"
}
},
"servicePath": "",
"title": "Google Workspace Marketplace API",
"version": "v2",
"version_module": true
}