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: src/services/zendesk-api-service.ts
+84-1Lines changed: 84 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -26,9 +26,12 @@ import {
26
26
Line,
27
27
IMessage,
28
28
IMessagesResults,
29
-
IListFilter
29
+
IListFilter,
30
+
ICreateAccessTokenResponse
30
31
}from"@models/index";
31
32
import{
33
+
ICreateConnectionResponse,
34
+
ICreateInboundWebhookResponse,
32
35
IZisIntegration,
33
36
IZisIntegrationResponse,
34
37
IZisJobspec,
@@ -398,4 +401,84 @@ export class ZendeskApiService {
398
401
type: "DELETE"
399
402
});
400
403
}
404
+
405
+
/**
406
+
* Creates an access token for the integration.
407
+
*
408
+
* @param {number} clientId - The client ID of the integration.
409
+
* @param {string[]} scopes - The scopes for the access token, e.g., ["read", "write"]. More information: https://developer.zendesk.com/api-reference/ticketing/oauth/oauth_tokens/#scopes
410
+
* @returns {Promise<ICreateAccessTokenResponse>} - The response from the API.
0 commit comments