import Client from './client'; export default class Memberships extends Client { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } options.serviceName = 'apibuilder api'; super(options); } get(options = {}) { return this.makeRequest(`${this.host}/memberships`, options); } getByGuid(guid, options = {}) { return this.makeRequest(`${this.host}/memberships/${guid}`, options); } deleteByGuid(guid, options = {}) { return this.makeRequest(`${this.host}/memberships/${guid}`, { ...options, method: 'DELETE', }); } }