incrementViews
- Home
- External Content
- SvcExtContent
- incrementViews
incrementViews
Increment the number of views for this 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. |
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=829134823288&title=TEST EXT CONTENT&url=https://www.example.com/web/829134823288&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":12264, "shard_id":301, "original_xref_id":"829134823288", "xref_id":"829134823288", "type":"web", "partner_id":"335", "title":"TEST EXT CONTENT", "description":null, "url":"http://www.example.com/web/829134823288", "category_id":0, "date_featured":null, "thread_id":null, "image_url":null, "date_created":"2019-01-30 16:24:08", "date_created_unix":1548887048, "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 | incrementViews |
Type | REST |
Response Types | JSON, XML |