You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-04 20:54:02 +02:00
25 lines
1.3 KiB
Plaintext
Vendored
25 lines
1.3 KiB
Plaintext
Vendored
CurrentDate = OPI_Tools.GetCurrentDate();
|
|
Token = "ya29.a0AS3H6NydFfzli6DWKnwXS3lfjB3ObN9w_XScfyjZg0Veg-B_xx2EnHC93EO6ALhsjgLXncLAUQ2UbsuK3McdWLnQN2-Fyei9PDyo2vf5c...";
|
|
Calendar = "c8819f720b61b7b4ae0a783d8c1d3b698f1bd5751522a0d948635f1441a5fac5@group.calendar.google.com";
|
|
Name = "New event";
|
|
Description = "TestEventDescription";
|
|
Hour = 3600;
|
|
|
|
Image1 = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Binary or File path
|
|
Image2 = "https://hut.openintegrations.dev/test_data/picture2.jpg"; // URL, Binary or File path
|
|
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);
|