Last active
March 2, 2020 19:49
-
-
Save daveham/91e19a820fb068414b383be580b2ca06 to your computer and use it in GitHub Desktop.
Hint for accessing meetup.com API for Call-Em-All coding challenge.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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