Skip to main content
The SDK lets you fetch a user’s upcoming or past events. You need the user ID and your API key (for example from 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).