getUpcomingContent
- Home
- External Content
- SvcExtContent
- getUpcomingContent
getUpcomingContent
Return a list of recent external content.
Parameters
Name | Description |
partnerID optional | Unique numeric identifier of partner. |
partnerName optional | Unique name of partner. |
page optional | Page of content to retrieve. |
num optional | Number of pieces of content to retrieve. |
type optional | Type of external content. |
sortKey optional | Key to sort content by. |
sortOrder optional | Order to arrange sorting (ASC or DESC). |
getTotal optional | Option for calculating the total in a query and returning that number. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/svcExtContent?action=getUpcomingContent&partnerID=335&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 |
{ "service":"svcExtContent", "action":"getUpcomingContent", "code":1, "message":"Successfully retrieved content", "item":[ { "ext_content_id":"12229", "shard_id":"111", "xref_id":"102268734947", "type":"web", "partner_id":"335", "title":"TEST EXT CONTENT", "description":"", "url":"http://www.example.com/web/102268734947", "category_id":"0", "thread_id":"0", "image_url":"", "created_by":"", "date_created":"2019-01-30 16:24:07", "date_created_rev":"-1548887047", "scaled_rating":"0", "num_ratings":"0", "num_buries":"0", "date_created_unix":1548887047 } ], "page":1, "per_page":1, "total":1 } |
Service Information
Service | svcExtContent |
Method | getUpcomingContent |
Type | REST |
Response Types | JSON, XML |