Attendees

If you want to add attendee(s) to your event, just create Attendee (s) and pass as an attendees parameter (you can also pass just an email of the attendee and the Attendee will be created for you):

from gcsa.attendee import Attendee

attendee = Attendee(
    'attendee@gmail.com',
    display_name='Friend',
    additional_guests=3
)

event = Event('Meeting',
              start=(17/Jul/2020)[12:00],
              attendees=attendee)

or

event = Event('Meeting',
              start=(17/Jul/2020)[12:00],
              attendees='attendee@gmail.com')

You can pass multiple attendees at once in a list.

event = Event('Meeting',
              start=(17/Jul/2020)[12:00],
              attendees=[
                  'attendee@gmail.com',
                  Attendee('attendee2@gmail.com', display_name='Friend')
              ])

To notify attendees about created/updated/deleted event use send_updates parameter in add_event, update_event, and delete_event methods. See SendUpdatesMode for possible values.

To add attendees to an existing event use its add_attendee() method:

event.add_attendee(
        Attendee('attendee@gmail.com',
            display_name='Friend',
            additional_guests=3
        )
)

or

event.add_attendee('attendee@gmail.com')

Update event using update_event() method to save the changes.