File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ def create_calendar_event(
189189 end_timezone , recurrence_type , recurrence_interval ,
190190 recurrence_days_of_week , recurrence_range_type ,
191191 recurrence_range_startdate , recurrence_range_enddate ,
192- location , attendees ):
192+ location , attendees , calendar = None ):
193193 """
194194 TODO: manual testing
195195 Create a new calendar event.
@@ -257,9 +257,9 @@ def create_calendar_event(
257257 },
258258 "attendees" : attendees_list
259259 }
260-
260+ url = 'me/calendars/{}/events' . format ( calendar ) if calendar is not None else 'me/events'
261261 try :
262- response = self ._post ('me/events' , json = body )
262+ response = self ._post (url , json = body )
263263 return response
264264 except Exception as e :
265265 return False
You can’t perform that action at this time.
0 commit comments