O365Calendar¶
flowtask.interfaces.O365Calendar
¶
OutlookCalendarClient
¶
Bases: O365Client
Outlook Calendar Client for managing calendar events through Microsoft Graph API.
create_event
async
¶
Create an event in the specified Outlook calendar.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
calendar_id
|
str
|
The ID of the calendar. |
required |
event
|
dict
|
The event details. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Dict
|
Details of the created event. |
delete_event
async
¶
Delete an event from the specified calendar.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
calendar_id
|
str
|
The ID of the calendar. |
required |
event_id
|
str
|
The ID of the event to delete. |
required |
get_event
async
¶
Retrieve details of a specific event.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
calendar_id
|
str
|
The ID of the calendar. |
required |
event_id
|
str
|
The ID of the event. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Dict
|
Details of the retrieved event. |
list_events
async
¶
List events in a specified time range in the specified calendar.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
calendar_id
|
str
|
The ID of the calendar. |
required |
start_datetime
|
datetime
|
Start time for retrieving events. |
required |
end_datetime
|
datetime
|
End time for retrieving events. |
required |
max_results
|
int
|
Maximum number of events to retrieve (default: 10). |
10
|
Returns:
| Name | Type | Description |
|---|---|---|
list |
List[Dict]
|
List of events in the specified time range. |
update_event
async
¶
Update an existing event in the specified calendar.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
calendar_id
|
str
|
The ID of the calendar. |
required |
event_id
|
str
|
The ID of the event. |
required |
updated_event
|
dict
|
Updated event details. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Dict
|
Details of the updated event. |