API Clients
For our API integrations, you will have access to our own API client to interact with the service APIs.
General way to acquire the api client is the following:
1
// const api = libs.<SERVICE_NAME>.get(<INTEGRATION_NAME>)
2
​
3
const api = libs.zendesk.get();
Copied!
Then you will make API calls with the following methods
1
api.request({
2
path: ...,
3
method: ...,
4
data: ...,
5
headers: ...,
6
});
7
​
8
// or convenient functions
9
api.get({
10
path: ...,
11
headers: ...,
12
});
13
​
14
api.post({
15
path: ...,
16
data: ...,
17
headers: ...,
18
});
19
​
20
api.put({
21
path: ...,
22
data: ...,
23
headers: ...,
24
});
25
​
26
api.delete({
27
path: ...,
28
data: ...,
29
headers: ...,
30
});
Copied!
Last modified 7mo ago
Copy link