mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-01-24 05:36:29 +02:00
25 lines
1.3 KiB
Plaintext
25 lines
1.3 KiB
Plaintext
CurrentDate = OPI_Tools.GetCurrentDate();
|
|
Token = "ya29.a0AcM612xw6IRwwkQIOEhizd2pJ6LLI4UAhdhxmXDGEzYkcfUPrLYgDDwbsSi5iQdc78WPs_1_Qor5KipuV6mAIvr6z-AKzrBaMT4erIR5T...";
|
|
Calendar = "e8a267e4a6629e0ef3f8a08ca54f52e2b031d3c40bd27d2866c2ed083c6353ec@group.calendar.google.com";
|
|
Name = "New event";
|
|
Description = "TestEventDescription";
|
|
Hour = 3600;
|
|
|
|
Image1 = "https://openyellow.neocities.org/test_data/picture.jpg"; // URL, Binary or Path to file
|
|
Image2 = "https://openyellow.neocities.org/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);
|