lib/api/modules/channels.js
function (channelIdentifier, triggerIdentifier, params) {
      var path;
      if (channelIdentifier) {
        path = this.constructPath(constants.CHANNELS, channelIdentifier, constants.TRIGGERS, triggerIdentifier);
        return this.Core.GET(path, params);
      } else {
        return this.rejectRequest('Bad Request: A channel identifier is required.');
      }
    }
function (channelIdentifier, triggerIdentifier, params) {
      var path;
      if (channelIdentifier) {
        path = this.constructPath(constants.CHANNELS, channelIdentifier, constants.TRIGGERS, triggerIdentifier);
        return this.Core.GET(path, params);
      } else {
        return this.rejectRequest('Bad Request: A channel identifier is required.');
      }
    }
function ( channelIdentifier , triggerIdentifier , params ) { var path ; if ( channelIdentifier ) { path = this . constructPath ( constants . CHANNELS , channelIdentifier , constants . TRIGGERS , triggerIdentifier ) ; return this . Core . GET ( path , params ) ; } else { return this . rejectRequest ( 'Bad Request: A channel identifier is required.' ) ; } }
Get all the triggers on a channel or a particular channel trigger identified by `triggerIdentifier`
@param  {String|Integer}           channelIdentifier A Robin channel identifier
@param  {String|Integer|undefined} triggerIdentifier A Robin channel trigger identifier
@param  {Object|undefined}         params            A querystring object
@return {Function}                                   A Promise
Get all the triggers on a channel or a particular channel trigger identified by triggerIdentifier