You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
25 lines
1.3 KiB
Plaintext
25 lines
1.3 KiB
Plaintext
CurrentDate = OPI_Tools.GetCurrentDate();
|
|
Token = "ya29.a0AeDClZDbtPTdsMASWLXTAmyOPaFlWRnH_95-IQ3_vaFI6ThHieeCjeEC4cheU6_vsdkpr_o-77O-5uS5GSL-tYacOX9nIGeOh5NyANLDR...";
|
|
Calendar = "2f51e6bbafcd42ce443bf984bd436de3073101ac1e5bcffabbc93a581967e539@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);
|