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
* Update README.md
Signed-off-by: Kaustav Das Modak <kaustav.dasmodak@freshworks.com>
* DX pass: Freshservice tickets endpoints
Signed-off-by: Kaustav Das Modak <kaustav.dasmodak@freshworks.com>
* prettier format
Signed-off-by: Kaustav Das Modak <kaustav.dasmodak@freshworks.com>
* Upgrade dependencies and remove unnecessary ones
Signed-off-by: Kaustav Das Modak <kaustav.dasmodak@freshworks.com>
* Bump version to v0.3.0
Signed-off-by: Kaustav Das Modak <kaustav.dasmodak@freshworks.com>
* GH Actions: Use ubuntu-latest and Node 18 for tests
Signed-off-by: Kaustav Das Modak <kaustav.dasmodak@freshworks.com>
Signed-off-by: Kaustav Das Modak <kaustav.dasmodak@freshworks.com>
// use newChildTicket.json() to access object elements
190
190
191
191
```
192
192
193
-
- The First argument is an object of type [`Freshservice.models.Ticket`](../api/classes/freshservice_models.Ticket.html) consisting details of the child ticket to be created
194
-
- The second argument is the ticket ID - identifier of the parent ticket for which child ticket is to be created
193
+
- The first argument is the ticket ID - identifier of the parent ticket for which child ticket is to be created
194
+
- The second argument is an object of type [`Freshservice.models.Ticket`](../api/classes/freshservice_models.Ticket.html) consisting details of the child ticket to be created
195
195
- Returns a `Promise` that resolves to a [`Freshservice.models.Ticket`](../api/classes/freshservice_models.Ticket.html) object
196
196
197
197
## Time Entries
@@ -204,19 +204,19 @@ View all time entries on a ticket with the given ID from Freshservice
204
204
205
205
```js
206
206
// List all time entries for given ticket ID with default pagination option i.e., page = 1 and per_page = 30
// use newTimeEntry.json() to access object elements
250
250
```
251
251
252
-
- The first argument is an object of type [`Freshservice.models.TimeEntry`](.../api/classes/freshservice_models.TimeEntry.html) containing the details of time entry to be created
253
-
- The second argument is ID of the ticket for which time entries are to be added
252
+
- The first argument is ID of the ticket for which time entries are to be added
253
+
- The second argument is an object of type [`Freshservice.models.TimeEntry`](.../api/classes/freshservice_models.TimeEntry.html) containing the details of time entry to be created
254
254
- Returns a `Promise` that resolves to a [`Freshservice.models.TimeEntry`](.../api/classes/freshservice_models.TimeEntry.html) object
255
255
256
256
### Update a time entry
257
257
258
258
Update time entry for ticket with given ticket ID and time entry ID
// use updatedTimeEntry.json() to access object elements
263
263
```
264
264
265
-
- The first argument is an object of type [`Freshservice.models.TimeEntry`](.../api/classes/freshservice_models.TimeEntry.html) containing the details of time entry to be updated
266
-
- The second argument is ID for the ticket for which time entries are to be updated
267
-
- The third argument is ID of the time entry which is to be updated
265
+
- The first argument is ID for the ticket for which time entries are to be updated
266
+
- The second argument is ID of the time entry which is to be updated
267
+
- The third argument is an object of type [`Freshservice.models.TimeEntry`](.../api/classes/freshservice_models.TimeEntry.html) containing the details of time entry to be updated
268
268
- Returns a `Promise` that resolves to a [`Freshservice.models.TimeEntry`](.../api/classes/freshservice_models.TimeEntry.html) object
- The first argument is an object of type [`Freshservice.models.Task`](../api/classes/freshservice_models.Task.html) containing details of task to be created
322
-
- The second argument is the ticket ID - identifier of the ticket for which task is to be created
321
+
- The first argument is the ticket ID - identifier of the ticket for which task is to be created
322
+
- The second argument is an object of type [`Freshservice.models.Task`](../api/classes/freshservice_models.Task.html) containing details of task to be created
323
323
- Returns a `Promise` that resolves to a [`Freshservice.models.Task`](../api/classes/freshservice_models.Task.html) object
324
324
325
325
### View task on a ticket
326
326
327
327
Retrieve a task on a ticket request with the given ID from Freshservice
// use updateTask.json() to access object elements
383
383
```
384
384
385
-
- The first argument is an object of type [`Freshservice.models.Task`](../api/classes/freshservice_models.Task.html) containing details of task to be updated
386
-
- The second argument is the ticket ID - identifier of the ticket for which task is to be updated
385
+
- The first argument is the ticket ID - identifier of the ticket for which task is to be updated
387
386
- The second argument is identifier of the task which is to be updated
387
+
- The third argument is an object of type [`Freshservice.models.Task`](../api/classes/freshservice_models.Task.html) containing details of task to be updated
388
388
- Returns a `Promise` that resolves to a [`Freshservice.models.Task`](../api/classes/freshservice_models.Task.html) object
389
389
390
390
### Delete task on a ticket
391
391
392
392
Delete the task on a ticket request with the given ID from Freshservice
Copy file name to clipboardExpand all lines: docs/get-started.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,12 +29,14 @@ To use this library in a Freshworks app, add the following to the `"dependencies
29
29
{
30
30
// ...
31
31
"dependencies": {
32
-
"@freshworks/api-sdk":"0.2.1"
32
+
"@freshworks/api-sdk":"0.3.0"
33
33
}
34
34
}
35
35
```
36
36
37
-
Then, allow the app to communicate with the domain for the product's REST API that you would be using (currently, only Freshteam and Freshservice). To do this, update the `"whitelisted-domains"` array in `manifest.json`:
37
+
#### Apps on platform-version 2.2
38
+
39
+
For apps on platform-version up to `2.2`, allow the app to communicate with the domain for the product's REST API that you would be using (currently, only Freshteam and Freshservice). To do this, update the `"whitelisted-domains"` array in `manifest.json`:
38
40
39
41
```js
40
42
{
@@ -43,6 +45,8 @@ Then, allow the app to communicate with the domain for the product's REST API th
43
45
}
44
46
```
45
47
48
+
#### Running
49
+
46
50
The Freshworks CLI (`fdk`) will fetch the dependency next time you run `fdk run`.
0 commit comments