getDiscussions
- Home
- Commenting
- UgcDiscussion
- getDiscussions
getDiscussions
Retrieve a list of discussions.
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. |
| maxHoursOld optional | Maximum number of hours old a discussion can be. |
| minHoursOld optional | Minimum number of hours old a discussion can be. |
| useSphinx optional | Whether or not to query against sphinx for discussions. |
| 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). |
| output optional | The response output format. Accepts JSON and XML. |
Request Syntax
| https://services.onesite.com/rest/ugcDiscussion?action=getDiscussions&nodeID=188234&num=1&page=1&devkey=[devkey] |
JSON Response
|
1 2 3 4 5 6 7 8 9 |
{ "service":"ugcDiscussion", "action":"getDiscussions", "code":1, "message":"Discussions retrieved", "total":1, "page":1, "per_page":1 } |
Service Information
| Service | ugcDiscussion |
| Method | getDiscussions |
| Type | REST |
| Response Types | JSON, XML |