list
List the likes a piece of content has received.
Parameters
Name | Description |
xref_id required | The cross reference id. (ie: video_id, photo_id, statusId, etc.) |
type required | The cross reference content type. (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) |
Request Syntax
https://services.onesite.com/1/likes/add.json?devkey=[devkey]&type=blog_post&xref_id=117118139 |
JSON Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
{ "code": 100, "message": "Likes retrieved successfully.", "content": { "likes": { "XrefID": 117118139, "XrefType": "blog_post", "Ratings": [ { "Rating": 10, "Count": 1, "First": { "userID": 229928503, "nodeID": 188234, "name": "ONEsite", "homeUrl": "http://www.onesitedemo.com/onedemo", "avatar": "http://images.onesite.com/resources/images/unisex_v4b.gif?ver=" } } ] } } } |