Get Likes List
OVERVIEW
Method to obtain User likes
This method is supported in version 4 of the API and above
Request URI
Content's likes :
GET /api/4/likes?contenttype=wiki&contentid=102
Content's Activity likes :
GET /api/4/likes?contenttype=wiki&contentid=102&activitytype=CREATED
| Parameter Name | Value | Description | |
|---|---|---|---|
| contenttype | String |
/api/3/likes?contenttype=files&contentid=102
|
|
| contentid | int |
This the content id of the required content. e.g blogid for contenttype=blog and wikiid for contenttype=wiki |
|
| activitytype | String | Content Type | Scope of activities |
| Files |
UPLOADED UPDATED LIKED |
||
| Wiki |
CREATED EDITED LIKED |
||
| Blog |
PUBLISHED EDITED LIKED |
||
| Events |
CREATED EDITED LIKED |
||
| Comments | ADDED | ||
| Tasks |
ADDED UPDATED |
||
| foldertype (Optional) | String |
This parameter is used for QA attachment e.g foldertype = QA It is optional and used for QA attachment in version 5 api/5/likes?contenttype=files&contentid=1&foldertype=QA |
|
Response
The response will contain a collection of user likes
<users>
A User like object list
</users>
Response codes
| CODE | MEANING |
|---|---|
| 201 | Comments returned successfully |
| 400 | There is a problem with the parameters |
| 401 | Unauthorised |
| 403 | Validation failed | Forbidden |
| 500 | Internal error occurred while returning comments |
In case of an error code other than 201, an error object will be returned in the format
Error Response
<error> <ref>{integer reference id, generated on the server side} </ref> <summary>{Description for the error message}</summary></error>
Comments
0 Comments