File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,10 @@ Function getCalendar($inID : Text) : Object
2828 : (Type ($inID )# Is text)
2929 Super ._throwError (10 ; {which: "\" calendarId\" " ; function: "google.calendar.getCalendar" })
3030
31- : (Length (String ($inID ))= 0)
32- Super ._throwError (9 ; {which: "\" calendarId\" " ; function: "google.calendar.getCalendar" })
33-
3431 Else
3532
36- var $URL : Text:= Super ._getURL ()+ "users/me/calendarList/" + cs .Tools .me .urlEncode ($inID )
33+ var $calendarID : Text:= (Length (String ($inID ))> 0) ? $inID : "primary"
34+ var $URL : Text:= Super ._getURL ()+ "users/me/calendarList/" + cs .Tools .me .urlEncode ($calendarID )
3735 var $headers : Object:= {Accept: "application/json" }
3836 $response := Super ._sendRequestAndWaitResponse ("GET" ; $URL ; $headers )
3937
You can’t perform that action at this time.
0 commit comments