Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
| Param | Type | Details |
|---|---|---|
| annotation | string | The type of collaboration annotation to delete. Valid values are: comment - For deleting a comment. bookmark - For deleting a bookmark. topic - For deleting a topic. link - For deleting a like. saved-query - For deleting a saved-query. |
| platform | string | The name of the platform. |
| id | string | The ID of the annotation to be deleted. |
| HttpPromise | Returns a promise which will resolve depending on the response from the API. |
CollaborationService.delete('comment', 'platform', 123456);
| Param | Type | Details |
|---|---|---|
| target | string | The comment target. |
| topic (optional) | string | The topic associated to the comment. |
| collection (optional) | string | The collection associated to the comment. |
| string | The event name that will be emitted. |
CollaborationService.getCommentAddedEventName(target, collection, topic);
| Param | Type | Details |
|---|---|---|
| annotation | string | The type of collaboration annotation to delete. Valid values are: comment - For creating a comment. bookmark - For creating a bookmark. topic - For creating a topic. link - For creating a like. saved-query - For creating a saved-query. |
| platform | string | The name of the platform. |
| data | object | The data object for creating the required annotation. |
| HttpPromise | Returns a promise which will resolve depending on the response from the API. |
CollaborationService.post('comment', 'platform', data);
| Param | Type | Details |
|---|---|---|
| annotation | string | The type of collaboration annotation you are searching for. Valid values are: comments - Returns a list of comments bookmarks - Returns a list of bookmarks topics - Returns a list of topics links - Returns a list of likes. saved-queries - Returns a list of saved-queries. |
| platform | string | The name of the platform. |
| target (optional) | string | When provided it will return only annotations associated with this target (not applicable to topics). |
| collection (optional) | string | When provided it will return only annotations associated with this collection (not applicable to topics). |
| topic (optional) | string | When provided it will return only annotations associated with this topic (not applicable to topics). |
| results (optional) | number | The number of annotations to return. |
| HttpPromise | Returns a promise which will resolve depending on the response from the API. |
CollaborationService.query('comments', 'platform', 'foo-bar');
Was this page helpful?