mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-25 21:39:21 +02:00
25 lines
1.3 KiB
Plaintext
Vendored
25 lines
1.3 KiB
Plaintext
Vendored
CurrentDate = OPI_Tools.GetCurrentDate();
|
|
Token = "ya29.a0AXeO80QmRD8H3PJ7Q4W_FrA0bUXT3qbvoufjrR5yC_gGUX-q8hpGM_XhHS1OMwb9Q7jPt-2h_AXtmWA2G27GIhpl6szrH7zn4IyFnnDp1...";
|
|
Calendar = "37a35af2f6c73c2d5ce643b8f2e2f887893a19f96cbc2df7de6190f86c1bad91@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);
|