Fetch Events Range (for testing)
This API endpoint is triggered by the end-to-end extension testing framework to read events associated with a calendar between a date range directly from the Google API.
Endpoint
GET /google/events/range HTTP/1.1
Host: api.atomcal.com/api/v2
Content-Type: application/x-www-form-urlencoded
Triggered by: Extension interface
Authentication: security.verifyAuthToken
Query: req.query.timeMin, req.query.timeMax, req.query.scrims_calendar_id
This endpoint only returns what is on Google calendar.
Example Responses
200 (successful operation)
res.status(200).send(parsedEventList);
400 (bad response)
Boom.badRequest(errorMessage)
Implementation details
- Read the locally saved calendar by using the scrims_calendar_id query param passed from the testing framework.
- Pick the associated account and obtain the authentication token to then read the events from Google calendar API
- Finally parse the event list and return as a successfully response
Edge cases
N/A