add

Register a like on a piece of content on the platform.

Parameters

Name Description
user_id required The user that’s performing the action.
xref_id required The cross reference id that the like is attached to. (ie: video_id, photo_id, statusId, etc.)
type required The cross reference content type that the like is attached to. (ie: blog_post, photo, video, photo_gallery, user_profile, group, forum_post, forum_thread, forum, message, site, audio, audio_gallery, podcast, petition, document, article, article_version, calendar_event, calendar, wiki_page, ugc_status, ext_content, discussion_post)
rating required The rating to associate with the like. Supports values 1-10. Ratings can be used for supporting different types of “reactions.”

Request Syntax

https://services.onesite.com/1/likes/add.json?devkey=[devkey]&type=blog_post&xref_id=117118139&rating=10&user_id=229928503

JSON Response