Skip to content

Instantly share code, notes, and snippets.

@daveham
Last active March 2, 2020 19:49
Show Gist options
  • Save daveham/91e19a820fb068414b383be580b2ca06 to your computer and use it in GitHub Desktop.
Save daveham/91e19a820fb068414b383be580b2ca06 to your computer and use it in GitHub Desktop.
Hint for accessing meetup.com API for Call-Em-All coding challenge.
import axios from 'axios';
const base = 'https://cors-anywhere.herokuapp.com/https://api.meetup.com';
// Note that these samples do not yet include any error handling.
export const fetchEvents = (group) =>
axios.get(`${base}/${group}/events`);
export const fetchEvent = (group, eventId) =>
axios.get(`${base}/${group}/events/${eventId}`);
export const fetchEventRSVPS = (group, eventId) =>
axios.get(`${base}/${group}/events/${eventId}/rsvps`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment