API Reference

Channels.getChannelInfo

Returns information about a specific channel.

The ID argument can be specified by the channel ID or the channel shortname. If the channel shortname is used the vhost argument is required.


Syntax

array channels.getChannelInfo ( mixed id, int vhost = NULL )

Arguments

NameTypeRequiredDefault valueDescription
idmixedRequirednoneThe ID of the channel you want information about.
vhostintOptionalNULLThe vhost ID that the channel belongs to.

Sample Response

Sample REST Response
http://api.newspark.ca/services/rest/channels/getChannelInfo?vhost=[VHOST_ID]&id=[CHANNEL_ID]
<?xml version="1.0" encoding="UTF-8"?>
<result>
  <id>CHANNEL_ID</id>
  <created>2012-01-20 12:08:57</created>
  <vhost>VHOST_ID</vhost>
  <name>Comments</name>
  <shortname>comments</shortname>
  <parentchannel>0</parentchannel>
  <thumburl/>
  <status>1</status>
  <description/>
  <readonly>0</readonly>
  <disableembed>0</disableembed>
  <modemailaccepted>0</modemailaccepted>
  <modemaildenied>0</modemaildenied>
  <emailaddress/>
  <visibility>1</visibility>
  <treeleft>11</treeleft>
  <treeright>12</treeright>
  <defaultsort>upload DESC</defaultsort>
  <geoblocking/>
</result>
Sample JSON Response
{
    "status": true,
    "result": {
        "id": CHANNEL_ID,
        "created": "2012-01-20 12:08:57",
        "vhost": VHOST_ID,
        "name": "Comments",
        "shortname": "comments",
        "parentchannel": 0,
        "thumburl": "",
        "status": 1,
        "description": "",
        "readonly": "0",
        "disableembed": "0",
        "modemailaccepted": 0,
        "modemaildenied": 0,
        "emailaddress": null,
        "visibility": 1,
        "treeleft": 11,
        "treeright": 12,
        "defaultsort": "upload DESC",
        "geoblocking": []
    }
}

Code examples

0 comments

Be the first to comment on getChannelInfo.

Add a Comment

  • captcha