Skip to content

Commit 9298d77

Browse files
authored
Add Attendee example
1 parent 04f0013 commit 9298d77

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.rst

+6-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Here are some examples of how `exchangelib` works:
2828
2929
from exchangelib import DELEGATE, IMPERSONATION, Account, Credentials, \
3030
EWSDateTime, EWSTimeZone, Configuration, NTLM, CalendarItem, Message, \
31-
Mailbox, Q
31+
Mailbox, Attendee, Q
3232
from exchangelib.folders import Calendar, ExtendedProperty, FileAttachment, ItemAttachment, \
3333
HTMLBody
3434
@@ -45,6 +45,10 @@ Here are some examples of how `exchangelib` works:
4545
body='Hello from Python',
4646
location='devnull',
4747
categories=['foo', 'bar'],
48+
required_attendees = [Attendee(
49+
mailbox=Mailbox(email_address='[email protected]'),
50+
response_type='Accept'
51+
)]
4852
))
4953
5054
# Username in WINDOMAIN\username format. Office365 wants usernames in PrimarySMTPAddress
@@ -75,7 +79,7 @@ Here are some examples of how `exchangelib` works:
7579
# non-standard calendar, choose a different one from account.folders[Calendar]
7680
#
7781
# bulk_update() and bulk_delete() methods are also supported.
78-
res = account.calendar.bulk_create(calendar_items)
82+
res = account.calendar.bulk_create(items=calendar_items)
7983
print(res)
8084
8185
# Get the calendar items we just created. We filter by categories so we only get the items created by

0 commit comments

Comments
 (0)