GET api.ashx/v2/likeditem.{json|xml}
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
ContentId | Guid | Query String | Content identifier of the liked item. Either ContentId or ContentUrl is required. | Optional | ||
ContentUrl | string | Query String | Content url of the liked item. Either ContentId or ContentUrl is required. | Optional | ||
PostTarget | string | Query String | Render target. | Optional | WebServices | Unknown,Web,Syndication,Other,Print,Nntp,Email,WebQuote,WebServices |
TypeId | Guid | Query String | Categorization type of the like. | Optional |
Example Requests
Widget Javascript
jQuery.telligent.evolution.get({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/likeditem.json' }).then(function(response) { // use response });
Example Responses
JSON
{ "LikedItem": { "Content": null, "TypeId": "49fec544-6df7-4a82-872b-f8be586d5e9e", "LikeCount": 6, "Warnings": [], "Errors": [] }, "Errors": [ "string", "string" ] }
XML
<?xml version="1.0" encoding="utf-16"?> <Response> <LikedItem> <TypeId>49fec544-6df7-4a82-872b-f8be586d5e9e</TypeId> <LikeCount>6</LikeCount> </LikedItem> <Errors> <Message>string</Message> <Message>string</Message> </Errors> </Response>