@wildix-internal/wim-calendar-client > ListResourceEventsCommand
ListResourceEventsCommand class
Get events active for the resource
Signature:
export declare class ListResourceEventsCommand extends ListResourceEventsCommand_base
Extends: ListResourceEventsCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { WimCalendarClient, ListResourceEventsCommand } from "@wildix-internal/wim-calendar-client"; // ES Modules import
// const { WimCalendarClient, ListResourceEventsCommand } = require("@wildix-internal/wim-calendar-client"); // CommonJS import
const client = new WimCalendarClient(config);
const input = { // ListResourceEventsInput
resource: "STRING_VALUE", // required
company: "STRING_VALUE", // required
email: "STRING_VALUE", // required
};
const command = new ListResourceEventsCommand(input);
const response = await client.send(command);
// { // ListResourceEventsOutput
// items: [ // CalendarEventList // required
// { // 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
// resource: "STRING_VALUE", // required
// transparency: "opaque" || "transparent", // required
// visibility: "public" || "private" || "confidential", // required
// },
// ],
// };