lib/api/modules/channels.js
function (channelIdentifier, data) {
      var path;
      if (channelIdentifier) {
        path = this.constructPath(constants.CHANNELS, channelIdentifier, constants.TRIGGERS);
        return this.Core.POST(path, data);
      } else {
        return this.rejectRequest('Bad Request: A channel identifier and a data object are required.');
      }
    }
function (channelIdentifier, data) {
      var path;
      if (channelIdentifier) {
        path = this.constructPath(constants.CHANNELS, channelIdentifier, constants.TRIGGERS);
        return this.Core.POST(path, data);
      } else {
        return this.rejectRequest('Bad Request: A channel identifier and a data object are required.');
      }
    }
function ( channelIdentifier , data ) { var path ; if ( channelIdentifier ) { path = this . constructPath ( constants . CHANNELS , channelIdentifier , constants . TRIGGERS ) ; return this . Core . POST ( path , data ) ; } else { return this . rejectRequest ( 'Bad Request: A channel identifier and a data object are required.' ) ; } }
Add a trigger to a channel
@param  {String|Integer} channelIdentifier A Robin channel identifier
@param  {Object}         data              A querystring object
@return {Function}                         A Promise
Add a trigger to a channel