API Reference

Collections.getCollectionInfo

This method returns collection information about the requested collection ID.


Syntax

array collections.getCollectionInfo ( int collection )

Arguments

NameTypeRequiredDefault valueDescription
collectionintRequirednoneThe ID of the collection.

Sample Response

Sample REST Response
http://api.newspark.ca/services/rest/collections/getCollectionInfo?collection=[COLLECTION_ID]
<?xml version="1.0" encoding="UTF-8"?>
<result>
  <id>COLLECTION_ID</id>
  <vhost>VHOST_ID</vhost>
  <thumbnail/>
  <type>2</type>
  <name>COLLECTION_NAME</name>
  <description>Saved Collection Description</description>
  <created>2012-02-01 10:45:01</created>
  <baseurl/>
  <channel>FILTERED_CHANNEL_ID</channel>
  <addToTop>0</addToTop>
  <autoActive>1</autoActive>
</result>
Sample JSON Response
{
    "status": true,
    "result": {
        "id": COLLECTION_ID,
        "vhost": VHOST_ID,
        "thumbnail": null,
        "type": 2,
        "name": "COLLECTION_NAME",
        "description": "Saved Collection Description",
        "created": "2012-02-01 10:45:01",
        "baseurl": null,
        "channel": FILTERED_CHANNEL_ID,
        "addToTop": 0,
        "autoActive": 1
    }
}

Code examples

0 comments

Be the first to comment on getCollectionInfo.

Add a Comment

  • captcha