shernshiou/node-uber

View on GitHub
lib/resources/drivers/PartnerProfile.js

Summary

Maintainability
A
0 mins
Test Coverage
function PartnerProfile(uber) {
  this._uber = uber;
  this.path = 'partners/me';
  this.requiredScope = 'partner.accounts';
}

module.exports = PartnerProfile;

PartnerProfile.prototype.getProfile = function getProfile(callback) {
  return this._uber.get({
    url: this.path,
    version: 'v1',
    scope: this.requiredScope
  }, callback);
};