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