Try our new Claude Code Skill to automatically integrate Hyperspell into your project
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": "<string>",
"name": "<string>",
"timezone": "<string>",
"primary": true
}
]
}List available calendars for a user. This can be used to ie. populate a dropdown for the user to select a calendar.
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": "<string>",
"name": "<string>",
"timezone": "<string>",
"primary": true
}
]
}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.
Successful Response
Was this page helpful?