@wildix-internal/wim-calendar-client > ScheduleEventCommand
ScheduleEventCommand class
Signature:
export declare class ScheduleEventCommand extends ScheduleEventCommand_base
Extends: ScheduleEventCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { WimCalendarClient, ScheduleEventCommand } from "@wildix-internal/wim-calendar-client"; // ES Modules import
// const { WimCalendarClient, ScheduleEventCommand } = require("@wildix-internal/wim-calendar-client"); // CommonJS import
const client = new WimCalendarClient(config);
const input = { // ScheduleEventInput
company: "STRING_VALUE", // required
owner: { // CalendarEventParticipant
id: "STRING_VALUE", // required
email: "STRING_VALUE", // required
name: "STRING_VALUE",
picture: "STRING_VALUE",
},
attendees: [ // CalendarEventParticipantsList // required
{
id: "STRING_VALUE", // required
email: "STRING_VALUE", // required
name: "STRING_VALUE",
picture: "STRING_VALUE",
},
],
invitee: {
id: "STRING_VALUE", // required
email: "STRING_VALUE", // required
name: "STRING_VALUE",
picture: "STRING_VALUE",
},
start: "STRING_VALUE", // required
duration: "STRING_VALUE", // required
summary: "STRING_VALUE",
extra: { // CalendarEventExtraData
timeZone: "STRING_VALUE",
},
};
const command = new ScheduleEventCommand(input);
const response = await client.send(command);
// { // ScheduleEventOutput
// success: true || false,
// result: { // ScheduleEventOutputResult
// event: { // CalendarEvent
// id: "STRING_VALUE", // required
// calendarId: "STRING_VALUE", // required
// summary: "STRING_VALUE", // required
// description: "STRING_VALUE",
// start: "STRING_VALUE", // required
// end: "STRING_VALUE", // required
// owner: "STRING_VALUE", // required
// status: "confirmed" || "tentative" || "cancelled", // required
// attendees: [ // CalendarEventAttendeeList // required
// { // CalendarEventAttendee
// email: "STRING_VALUE", // required
// name: "STRING_VALUE",
// status: "accepted" || "tentative" || "declined" || "none", // required
// },
// ],
// type: "default" || "outOfOffice", // required
// transparency: "opaque" || "transparent", // required
// visibility: "public" || "private" || "confidential", // required
// },
// },
// };