getNetworkComments
- Home
- Commenting
- UgcDiscussion
- getNetworkComments
getNetworkComments
Retrieve a list of comments for the network.
Parameters
Name | Description |
optional | |
sortKey optional | Key to sort results on. |
sortOrder optional | Direction to sort results (ASC or DESC). |
page optional | Page #. |
num optional | Number of items to show. |
xrefType optional | Xref type to filter discussions for. |
getTotal optional | Whether or not to calculate the total records found in a search result. |
viewOptions optional | List of items to output (comma-separated). |
createdBy optional | User who created a piece of content. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/ugcDiscussion?action=getNetworkComments&nodeID=188234&num=1&page=1&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 |
{ "service":"ugcDiscussion", "action":"getNetworkComments", "code":1, "message":"Comments retrieved", "item":[ { "commentID":138796501, "discussionID":4366687, "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":200362215, "dateCreated":"2013-09-13 11:05:13", "dateCreated_ts":1379088313, "status":"active", "permissions":1073718561, "isPublic":1, "numViews":0, "rating":"0" } ], "total":1, "page":1, "per_page":1 } |
Service Information
Service | ugcDiscussion |
Method | getNetworkComments |
Type | REST |
Response Types | JSON, XML |