You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+106-5Lines changed: 106 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,7 +123,7 @@ When every millisecond counts.
123
123
124
124
`clientside`
125
125
126
-
_coming soon..._
126
+
Suitable for clientside only frameworks such as React.
127
127
128
128
129
129
Gatekeeper Overrides
@@ -230,15 +230,116 @@ You can override the class inferred performance metrics and provide your own if
230
230
| statusCode | integer | 200 | 2xx-5xx | Status code that associated with the request. |
231
231
232
232
233
+
# PrivateClient
234
+
235
+
`PrivateClient` is a class extending `Client` which serves as the main entry point for interacting with private CrowdHandler API methods. It requires a private API key for instantiation which can be found in the CrowdHandler control panel.
236
+
237
+
## Instantiate a Private API Client
238
+
239
+
const private_clent = new crowdhandler.PrivateClient (your_private_key, options)
| timeout | integer | 5000 | 1 - 30000 | Outbound API communication timeout in milliseconds. |
250
+
251
+
252
+
## Methods
253
+
254
+
All methods return a new `Resource` instance for interacting with a specific endpoint of the API.
255
+
256
+
**Note1**: Full API documentation containing response examples, required parameter fields and more can be found in your control panel. Navigate to **account** -> **api**.
257
+
258
+
**Note2**: In all the methods below, the `ID_PLACEHOLDER` is a placeholder for the actual id required by the specific API endpoint. It should be replaced by the actual id before making the API call.
259
+
260
+
### account()
261
+
262
+
This method returns a `Resource` instance for interacting with the `/v1/account/` endpoint.
263
+
264
+
### accountPlan()
265
+
266
+
This method returns a `Resource` instance for interacting with the `/v1/account/plan` endpoint.
267
+
268
+
### codes()
269
+
270
+
This method returns a `Resource` instance for interacting with the `/v1/codes/ID_PLACEHOLDER` endpoint.
271
+
272
+
### domains()
273
+
274
+
This method returns a `Resource` instance for interacting with the `/v1/domains/ID_PLACEHOLDER` endpoint.
275
+
276
+
### domainsIPs()
277
+
278
+
This method returns a `Resource` instance for interacting with the `/v1/domains/ID_PLACEHOLDER/ips` endpoint.
279
+
280
+
### domainsReports()
281
+
282
+
This method returns a `Resource` instance for interacting with the `/v1/domains/ID_PLACEHOLDER/reports` endpoint.
283
+
284
+
### domainsRequests()
285
+
286
+
This method returns a `Resource` instance for interacting with the `/v1/domains/ID_PLACEHOLDER/requests` endpoint.
287
+
288
+
### domainsRooms()
289
+
290
+
This method returns a `Resource` instance for interacting with the `/v1/domains/ID_PLACEHOLDER/rooms` endpoint.
291
+
292
+
### domainsURLs()
293
+
294
+
This method returns a `Resource` instance for interacting with the `/v1/domains/ID_PLACEHOLDER/urls` endpoint.
295
+
296
+
### groups()
297
+
298
+
This method returns a `Resource` instance for interacting with the `/v1/groups/ID_PLACEHOLDER` endpoint.
299
+
300
+
### groupsBatch()
301
+
302
+
This method returns a `Resource` instance for interacting with the `/v1/groups/ID_PLACEHOLDER/batch` endpoint.
303
+
304
+
### groupsCodes()
305
+
306
+
This method returns a `Resource` instance for interacting with the `/v1/groups/ID_PLACEHOLDER/codes` endpoint.
307
+
308
+
### ips()
309
+
310
+
This method returns a `Resource` instance for interacting with the `/v1/ips/ID_PLACEHOLDER` endpoint.
311
+
312
+
### reports()
313
+
314
+
This method returns a `Resource` instance for interacting with the `/v1/reports/ID_PLACEHOLDER` endpoint.
315
+
316
+
### rooms()
317
+
318
+
This method returns a `Resource` instance for interacting with the `/v1/rooms/ID_PLACEHOLDER` endpoint.
319
+
320
+
### roomsReports()
321
+
322
+
This method returns a `Resource` instance for interacting with the `/v1/rooms/ID_PLACEHOLDER/reports` endpoint.
323
+
324
+
### roomsSessions()
325
+
326
+
This method returns a `Resource` instance for interacting with the `/v1/rooms/ID_PLACEHOLDER/sessions` endpoint.
327
+
328
+
### sessions()
329
+
330
+
This method returns a `Resource` instance for interacting with the `/v1/sessions/ID_PLACEHOLDER` endpoint.
331
+
332
+
### templates()
333
+
334
+
This method returns a `Resource` instance for interacting with the `/v1/templates/ID_PLACEHOLDER` endpoint.
0 commit comments