process.env.PEERPOP_API_KEY).
Usage
API
peerpop.events.list(type, userId, apiKey)
Returns a Promise that resolves to the API response (parsed JSON).
For the exact request/response shape, see the API Reference endpoints (
POST /v1/events/upcoming and POST /v1/events/past).