Bookmark API¶
BookmarkService enables you to add and remove content from favourites, and read favourite assignments.
Bookmark REST API
To learn how to manage favourites using the REST API, see REST API reference.
To view a list of all favourites, use BookmarkService::loadBookmarks:
1 2 3 4 5 6 7 | |
You can mark a content item as favourite by providing its Location object to the BookmarkService::createBookmark method:
1 2 3 | |
You can remove a location from a list of favourites with BookmarkService::deleteBookmark:
1 | |