getQueue
- Home
- Moderation
- SvcPremoderation
- getQueue
getQueue
Retrieve items from pre-moderation queue.
Parameters
Name | Description |
nodeID required | Node of content we are working with. |
xrefType required | Type of content. |
level optional | Escalation level. |
page optional | Page number. |
num optional | Number of items to load. |
sortOrder optional | Sort order. |
tag optional | Tag to query against. |
getTotal optional | Whether or not to get the total number of items. |
viewOptions optional | View Options. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/svcPremoderation?action=getQueue&nodeID=188234&xrefType=discussion_post&num=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":"svcPremoderation", "action":"getQueue", "code":1, "message":"Items retrieved", "item":[ { "commentID":157882238, "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-14 12:50:11", "dateCreated_ts":1550170211, "status":"queue", "permissions":1073718561, "isPublic":1, "numViews":0, "rating":"0" } ], "total":1, "page":1, "per_page":1 } |
Service Information
Service | svcPremoderation |
Method | getQueue |
Type | REST |
Response Types | JSON, XML |