lib/api/modules/accounts.js
function (accountIdOrSlug, params) {
    var path;
    if (accountIdOrSlug) {
      path = this.constructPath(constants.ACCOUNTS, accountIdOrSlug);
      return this.Core.GET(path, params);
    } else {
      return this.rejectRequest('Bad Request: An account id or slug must be supplied for this operation');
    }
  }
function (accountIdOrSlug, params) {
    var path;
    if (accountIdOrSlug) {
      path = this.constructPath(constants.ACCOUNTS, accountIdOrSlug);
      return this.Core.GET(path, params);
    } else {
      return this.rejectRequest('Bad Request: An account id or slug must be supplied for this operation');
    }
  }
function ( accountIdOrSlug , params ) { var path ; if ( accountIdOrSlug ) { path = this . constructPath ( constants . ACCOUNTS , accountIdOrSlug ) ; return this . Core . GET ( path , params ) ; } else { return this . rejectRequest ( 'Bad Request: An account id or slug must be supplied for this operation' ) ; } }
Get an account
@param  {String|Integer} accountIdOrSlug A Robin account identifier or slug
@param  {Object}         params          A querystring object
@return {Function}                       A Promise
Get an account