static
osapi.jive.corev3.favorites
Static class for getting and creating
Favorites
. Favorites correspond
to creating Bookmarks in the "Create" menu in the Jive UI. They are bookmarks of external URLs.Methods
↑
Favorite describing the newly created favorite
create(favorite,options)
POST /contents
Retrieves
Favorite
Description
Create a new favorite with specified characteristics, and return an entity representing the newly created favorite. A favorite is an external URL saved as a bookmark.
Here is an example of a JSON with the minimum set of fields you must include:
{ "content": { "type": "text/html", "text": "<body><p>Some interesting text</p></body>" }, "favoriteObject" : { "type" : "url", "url" : "http://news.yahoo.com/scientists-anti-alzheimers-gene-mutation-151901443.html" }, "subject" : "Scientists find anti-Alzheimer's gene mutation - Yahoo! News", "type" : "favorite" }
Takes:
- Favorite fields describing the new favorite
Options:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Names of the fields to be returned |
Retrieves:
↑
Favorite[] Paginated list of matching favorites
get(options)
GET /contents
Retrieves
Content[]
Description
Return a paginated list of favorite that match the specified criteria.
Options:
Name | Type | Required | Description |
---|---|---|---|
author | String | false | URI of a person, limiting results to objects authored by this person |
count | Integer | false | Maximum number of objects to return (default is 25) |
fields | String | false | Names of the fields to be returned |
search | String | false | One or more search terms separated by commas, limiting results to objects that match the terms |
startIndex | Integer | false | Zero-relative index of the first content object to be returned |
tag | String | false | Comma delimited list of tag values, limiting results to objects with one of those tags |