# An example for Python language
import requests
data = {
'invite_id': 'test_id_1', # it should be unique
'title': 'This is the event title',
'start_time': '2024-04-06T12:45:00+04:00', # ISO 8601 format
'end_time': '2024-04-06T13:45+04:00', # ISO 8601 format
'notes': 'This is the event notes',
'location': 'Maine - USA',
'recipients': [
{'email': 'email1@example.com'},
{'email': 'email2@example.com'},
],
'webhook_url': '<your_site>/calendar/webhook/', # your webhook endpoint to receive the RSVP
'token': '<your_token_here>', # your project token
}
ics_file = requests.post(
'https://calendarinviteapi.com/calendar/invite/',
json=data,
)