getCommentInfo
- Home
- Commenting
- UgcDiscussion
- getCommentInfo
getCommentInfo
Gets information about a particular comment.
Parameters
Name | Description |
nodeID required | Node of content we are working with. |
commentID required | ID of comment (post) to work with. |
viewOptions optional | List of items to output (comma-separated). |
skipStatusCheck optional | Whether or not to skip the active comment status check. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/ugcDiscussion?action=getCommentInfo&nodeID=188234&commentID=157882247&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 47 48 49 50 |
{ "service":"ugcDiscussion", "action":"getCommentInfo", "code":1, "message":"Comment info found", "item":{ "commentID":157882247, "discussionID":3978127, "nodeID":188234, "title":"TEST", "content":"TEST", "parentID":0, "numChildren":0, "anonymous":0, "edited":null, "editedBy":null, "censored":null, "censoredBy":null, "userIP":"127.0.0.1", "createdBy":229928503, "dateCreated":"2019-02-07 14:03:53", "dateCreated_ts":1549569833, "status":"active", "permissions":1073718561, "isPublic":1, "numViews":0, "rating":"0", "owner":{ "user_id":"229928503", "display_name":"ONEsite", "location":"", "age":22, "domain":"onesitedemo.com", "subdir":"onedemo", "home_url":"http://www.onesitedemo.com/onedemo", "node_home_urls":{ "188234":"http://www.onesitedemo.com/onedemo" }, "name":"ONEsite", "gender":"3", "first_name":"ONEsite", "last_name":"", "username":"onesitedemo", "master_node_id":"188234", "avatar":"http://services.onesite.com/resources/images/unisex_v4b.gif?ver=13.06.21", "photo":"http://services.onesite.com/resources/images/unisex_v4.gif?ver=13.06.21", "site_id":"234714047" } } } |
Service Information
Service | ugcDiscussion |
Method | getCommentInfo |
Type | REST |
Response Types | JSON, XML |