incrementViews
- Home
- Blogs & Articles
- UgcArticle
- incrementViews
incrementViews
Increments the number of views for an article.
Parameters
Name | Description |
articleID required | ID of article to work with. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/ugcArticle?action=incrementViews&articleID=267355&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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
{ "service":"ugcArticle", "action":"incrementViews", "code":1, "message":"Article Views Successfully Incremented", "item":{ "articleID":"267355", "blogID":"234714047", "nodeID":"188234", "numVersions":"31", "numActiveVersions":"31", "dateCreated":"2019-02-04 12:26:26", "dateCreated_ts":1549304786, "firstPublished":"2019-02-04 12:26:27", "firstPublished_ts":1549304787, "status":"inactive", "permissions":"1048544289", "isPublic":"1", "numViews":"0", "rating":"0", "cms_url":"http://www.onesitedemo.com/onedemo/cms/267355/my_new_article", "url":"http://www.onesitedemo.com/onedemo/go/article/view/267355/my_new_article", "version":{ "versionID":"464686", "articleID":"267355", "blogID":"234714047", "nodeID":"188234", "title":"My New Article", "titleURL":"my_new_article", "summary":"A demonstration article.", "body":"<p>This is the text of the sample article.</p>", "layoutID":"0", "numPages":"1", "versionDate":"2019-02-04 13:40:18", "versionDate_ts":1549309218, "createdBy":"229928503", "versionStatus":"inactive", "attachments":null, "languages":[ false ], "publishDate":"2019-02-04 13:40:18", "publishDate_ts":1549309218 } } } |
Service Information
Service | ugcArticle |
Method | incrementViews |
Type | REST |
Response Types | JSON, XML |