import Client from './client'; export default class Users extends Client { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } options.serviceName = 'Github'; super(options); } getUser(options = {}) { return this.makeRequest(`${this.host}/user`, options); } getUserAndOrgs(options = {}) { return this.makeRequest(`${this.host}/user/orgs`, options); } }