You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-18 09:51:28 +02:00
24 lines
1.3 KiB
Plaintext
Vendored
24 lines
1.3 KiB
Plaintext
Vendored
CurrentDate = OPI_Tools.GetCurrentDate();
|
|
Token = "ya29.a0ATi6K2sWW_31WLH0d9aK0qk0HJ-UfyvZDcLeBbF5bLU7QH09Bx2pXAupIw40USQVaxXqsovItVSt9swWuPdBDSA0eFaVPE0CbaU2OLQlyrnITI1VVXgZ_Gx2R...";
|
|
Calendar = "f70efec034ef36b040f12b5d8938e54fc399d73cd37b8e765bdd86ebc4a67e4a@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); |