Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
import { Luma } from "@alhwyn/luma"; const luma = new Luma(process.env.LUMA_API_KEY!); const calendar = await luma.calendar.get(); console.log(calendar.name, calendar.api_id);
{ "api_id": "cal-abc123", "name": "My events calendar" }
Fetch the Luma calendar tied to your API key with luma.calendar.get(), returning the calendar ID, name, URL, timezone, and theme settings.
luma.calendar.get(): Promise<Calendar>
import { Luma } from "@alhwyn/luma"; const luma = new Luma(process.env.LUMA_API_KEY!); const calendar = await luma.calendar.get(); console.log(calendar.name);