getContentInfo
- Home
- External Content
- SvcExtContent
- getContentInfo
getContentInfo
Print out an array of info about the requested content.
Parameters
Name | Description |
partnerID optional | Unique numeric identifier of partner. |
partnerName optional | Unique name of partner. |
type optional | Type of external content. |
xrefID optional | Id of external content. |
userID optional | ID of user to work with. |
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/svcExtContent?action=createContent&partnerID=335&type=web&xrefID=26331593283&title=TEST EXT CONTENT&url=https://www.example.com/web/26331593283&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":"createContent", "code":1, "message":"Successfully created content", "item":{ "ext_content_id":12024, "shard_id":49, "original_xref_id":"26331593283", "xref_id":"26331593283", "type":"web", "partner_id":"335", "title":"TEST EXT CONTENT", "description":null, "url":"http://www.example.com/web/26331593283", "category_id":0, "date_featured":null, "thread_id":null, "image_url":null, "date_created":"2019-01-30 16:24:08", "date_created_unix":1548887048, "created_by":null, "status":"active", "permissions":1048544289, "is_public":1, "num_views":0, "scaled_rating":null, "num_ratings":0, "num_buries":null } } |
Service Information
Service | svcExtContent |
Method | getContentInfo |
Type | REST |
Response Types | JSON, XML |