lib/api/modules/channels.js
function (data) {
    var path;
    if (data) {
      path = this.constructPath(constants.CHANNELS);
      return this.Core.POST(path, data);
    } else {
      return this.rejectRequest('Bad Request: A data object is required.');
    }
  }
function (data) {
    var path;
    if (data) {
      path = this.constructPath(constants.CHANNELS);
      return this.Core.POST(path, data);
    } else {
      return this.rejectRequest('Bad Request: A data object is required.');
    }
  }
function ( data ) { var path ; if ( data ) { path = this . constructPath ( constants . CHANNELS ) ; return this . Core . POST ( path , data ) ; } else { return this . rejectRequest ( 'Bad Request: A data object is required.' ) ; } }
Create a channel
@param  {Object}   data A data object
@return {Function}      A Promise
Create a channel