Skip to main content

@wildix-internal/wim-calendar-client > GetSlotsCommand

GetSlotsCommand class

Signature:

export declare class GetSlotsCommand extends GetSlotsCommand_base 

Extends: GetSlotsCommand_base

Example

Use a bare-bones client and the command you need to make an API call.

import { WimCalendarClient, GetSlotsCommand } from "@wildix-internal/wim-calendar-client"; // ES Modules import
// const { WimCalendarClient, GetSlotsCommand } = require("@wildix-internal/wim-calendar-client"); // CommonJS import
const client = new WimCalendarClient(config);
const input = { // GetSlotsInput
company: "STRING_VALUE", // required
email: "STRING_VALUE", // required
from: "STRING_VALUE", // required
till: "STRING_VALUE", // required
duration: "STRING_VALUE",
timeZone: "STRING_VALUE", // required
excluded: "STRING_VALUE",
};
const command = new GetSlotsCommand(input);
const response = await client.send(command);
// { // GetSlotsOutput
// success: true || false,
// result: { // 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",
// ],
// },
// },
// };