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

const client = new Hyperspell({
  apiKey: process.env['HYPERSPELL_TOKEN'], // This is the default and can be omitted
});

async function main() {
  const calendar = await client.integrations.googleCalendar.list();

  console.log(calendar.items);
}

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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Successful Response

The response is of type object.