mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2024-12-23 02:06:12 +02:00
17 lines
750 B
Plaintext
17 lines
750 B
Plaintext
|
|
||
|
Attachments = New Map;
|
||
|
Attachments.Insert("Image1", "https://opi.neocities.org/assets/images/logo_long-e8fdcca6ff8b32e679ea49a1ccdd3eac.png");
|
||
|
Attachments.Insert("Image2", "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/Media/logo.png?v1");
|
||
|
|
||
|
EventMap = New Map;
|
||
|
EventMap.Insert("Description", Description);
|
||
|
EventMap.Insert("Title", Name);
|
||
|
EventMap.Insert("Venue", "On office");
|
||
|
EventMap.Insert("StartDate", CurrentSessionDate());
|
||
|
EventMap.Insert("EndDate", EventMap["StartDate"] + 3600);
|
||
|
EventMap.Insert("ArrayOfAttachmentURLs", Attachments);
|
||
|
EventMap.Insert("SendNotifications", True);
|
||
|
|
||
|
Response = OPI_GoogleCalendar.CreateEvent(Token, Calendar, EventMap);
|
||
|
Response = OPI_Tools.JSONString(Response);
|