Attachments

If you want to add attachment(s) to your event, just create Attachment (s) and pass as a attachments parameter:

from gcsa.attachment import Attachment

attachment = Attachment(file_url='https://bit.ly/3lZo0Cc',
                        title='My file',
                        mime_type='application/vnd.google-apps.document')

event = Event('Meeting',
              start=(22/Apr/2019)[12:00],
              attachments=attachment)

You can pass multiple attachments at once in a list.

event = Event('Meeting',
              start=(22/Apr/2019)[12:00],
              attachments=[attachment1, attachment2])

To add attachment to an existing event use its add_attachment() method:

event.add_attachment('My file',
                     file_url='https://bit.ly/3lZo0Cc',
                     mime_type='application/vnd.google-apps.document')

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