1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-25 21:39:21 +02:00
Vitaly the Alpaca (bot) 74bc9c33f0 Main build (Jenkins)
2024-12-09 15:33:55 +03:00

25 lines
1.3 KiB
Plaintext

CurrentDate = OPI_Tools.GetCurrentDate();
Token = "ya29.a0AeDClZAfxs19DgmwOO8cVD3QKtotHfCNic5iCoPbnD8IzxjvXSUVVyCXTuWw9t0RG7seizlNqpNWBH7sHrQAyS0SeFgQ6chxYmOYUMDNc...";
Calendar = "06db13e5cd499d76e185d0b904920e3726060189a2a1d09614ccd8c23550829c@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);