rateContent
- Home
- External Content
- SvcExtContent
- rateContent
rateContent
Rate the given piece of external content.
Parameters
Name | Description |
partnerID optional | Unique numeric identifier of partner. |
partnerName optional | Unique name of partner. |
type optional | Type of external content. |
xrefID optional | Id of external content. |
userID optional | ID of user to work with. |
rating optional | Rating to give content. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/svcExtContent?action=createContent&partnerID=335&type=web&xrefID=323193522170&title=TEST EXT CONTENT&url=https://www.example.com/web/323193522170&devkey=[devkey] |
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 24 25 26 27 28 29 30 31 |
{ "service":"svcExtContent", "action":"createContent", "code":1, "message":"Successfully created content", "item":{ "ext_content_id":12486, "shard_id":259, "original_xref_id":"323193522170", "xref_id":"323193522170", "type":"web", "partner_id":"335", "title":"TEST EXT CONTENT", "description":null, "url":"http://www.example.com/web/323193522170", "category_id":0, "date_featured":null, "thread_id":null, "image_url":null, "date_created":"2019-01-30 16:24:07", "date_created_unix":1548887047, "created_by":null, "status":"active", "permissions":1048544289, "is_public":1, "num_views":0, "scaled_rating":null, "num_ratings":0, "num_buries":null } } |
Service Information
Service | svcExtContent |
Method | rateContent |
Type | REST |
Response Types | JSON, XML |