GET
/
integrations
/
google_calendar
/
list
JavaScript
import Hyperspell from 'hyperspell';

const client = new Hyperspell({
  apiKey: 'My API Key',
});

const calendar = await client.integrations.googleCalendar.list();

console.log(calendar.items);
{
  "items": [
    {
      "id": "amit.aardvark@gmail.com",
      "name": "Amit's Calendar",
      "primary": true,
      "timezone": "America/New_York"
    }
  ]
}

Authorizations

Authorization
string
header
required

API Key or JWT User Token. If using an API Key, set the X-As-User header to act as a specific user. A JWT User Token is always scoped to a specific user.

Response

200 - application/json

Successful Response

The response is of type object.