@wildix/xbees-kite-client > GetCalendarSlotsCommand
GetCalendarSlotsCommand class
Signature:
export declare class GetCalendarSlotsCommand extends GetCalendarSlotsCommand_base
Extends: GetCalendarSlotsCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { KiteClient, GetCalendarSlotsCommand } from "@wildix/xbees-kite-client"; // ES Modules import
// const { KiteClient, GetCalendarSlotsCommand } = require("@wildix/xbees-kite-client"); // CommonJS import
const client = new KiteClient(config);
const input = { // GetCalendarSlotsInput
targetId: "STRING_VALUE", // required
from: "STRING_VALUE", // required
till: "STRING_VALUE", // required
duration: "STRING_VALUE",
timeZone: "STRING_VALUE", // required
excluded: "STRING_VALUE",
};
const command = new GetCalendarSlotsCommand(input);
const response = await client.send(command);
// { // GetCalendarSlotsOutput
// calendar: { // CalendarAvailability
// days: [ // CalendarDaySlotsList
// { // CalendarDaySlots
// date: "STRING_VALUE",
// slots: [ // CalendarSlotsList
// { // CalendarSlot
// startTime: "STRING_VALUE",
// },
// ],
// },
// ],
// duration: "STRING_VALUE",
// timeZone: "STRING_VALUE",
// settings: { // CalendarAvailabilitySettings
// duration: [ // CalendarEventDurationList
// "STRING_VALUE",
// ],
// },
// },
// };