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