CurrentDate = OPI_Tools.GetCurrentDate(); Token = "ya29.a0AcM612zdAe2M8Ywdxt7xmK1VAAj2m3yjTdP1Ap8cFmqbE8lVngjIAujPtjc_c94MCuKNLfn7MSssBd6NfMXDQDrHMUv7Fgjp7cjuXk68n..."; Calendar = "2cd4d2b5dc7a898d4f1d65956b5ccca32841aff4a1603b373ff14db442ac9fab@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);