1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-25 21:39:21 +02:00
Vitaly the Alpaca (bot) 64f333d44f Main build (Jenkins)
2024-11-29 13:07:14 +03:00

25 lines
1.3 KiB
Plaintext

CurrentDate = OPI_Tools.GetCurrentDate();
Token = "ya29.a0AeDClZAIFDKYT5FOSyIwMBervZ5TPcEm5qzDlBwYp92cKUBIDq3ubJss5HD8vEAGTlgmWaVCdgtQ1ecN26ZrdtERlCJCaR2fiiTFGXKs-...";
Calendar = "2b27a0d8595a5f3da2e0a28bd781066b5f1e7243e7b902f682cf9b39fd97e257@group.calendar.google.com";
Name = "New event";
Description = "TestEventDescription";
Hour = 3600;
Image1 = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Binary or Path to file
Image2 = "https://api.athenaeum.digital/test_data/picture2.jpg"; // URL, Binary or Path to file
Attachments = New Map;
Attachments.Insert("Image1", Image1);
Attachments.Insert("Image2", Image2);
EventDescription = New Map;
EventDescription.Insert("Description" , Description);
EventDescription.Insert("Title" , Name);
EventDescription.Insert("Venue" , "InOffice");
EventDescription.Insert("StartDate" , CurrentDate);
EventDescription.Insert("EndDate" , EventDescription["StartDate"] + Hour);
EventDescription.Insert("ArrayOfAttachmentURLs" , Attachments);
EventDescription.Insert("SendNotifications" , True);
Result = OPI_GoogleCalendar.CreateEvent(Token, Calendar, EventDescription);