import Client from './client'; export default class Venues extends Client { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } options.serviceName = 'foursquare'; super(options); } getExplore(options = {}) { return this.makeRequest(`${this.host}/venues/explore`, options); } getByVenueId(venueId, options = {}) { return this.makeRequest(`${this.host}/venues/${venueId}`, options); } }