lib/api/modules/locations.js
function (identifier, params) {
    var path = this.constructPath(constants.LOCATIONS, identifier);
    return this.Core.GET(path, params);
  }
function (identifier, params) {
    var path = this.constructPath(constants.LOCATIONS, identifier);
    return this.Core.GET(path, params);
  }
function ( identifier , params ) { var path = this . constructPath ( constants . LOCATIONS , identifier ) ; return this . Core . GET ( path , params ) ; }
Get all the locations or a particular location identified by `identifier`
@param  {String|Integer|undefined} identifier A location identifier
@param  {Object}                   params     A querystring object
@return {Function}                            A promise
Get all the locations or a particular location identified by identifier