You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
Main build (Jenkins)
This commit is contained in:
@@ -23,9 +23,10 @@ sidebar_position: 2
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_GoogleCalendar.AddCalendarToList(Token, "55868c32be16935f0..."); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
Token = "ya29.a0AcM612yhdixI9i7TxOgZIa9kwI5a42S4MfHVMdYZeolUKySbI7x1gtyAhGDlso57x7N6WNRpp9BZX0N3MQOcZEdR6lDciUHI4nof3u9xi...";
|
||||
Calendar = "1b68863d126f9c4d9e971c673e25f6601a9622beafbcc10913cd78120c755c6a@group.calendar.google.com";
|
||||
|
||||
Result = OPI_GoogleCalendar.AddCalendarToList(Token, Calendar);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -23,9 +23,10 @@ sidebar_position: 4
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_GoogleCalendar.DeleteCalendarFromList(Token, "55868c32be16935f0..."); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
Token = "ya29.a0AcM612yhdixI9i7TxOgZIa9kwI5a42S4MfHVMdYZeolUKySbI7x1gtyAhGDlso57x7N6WNRpp9BZX0N3MQOcZEdR6lDciUHI4nof3u9xi...";
|
||||
Calendar = "1b68863d126f9c4d9e971c673e25f6601a9622beafbcc10913cd78120c755c6a@group.calendar.google.com";
|
||||
|
||||
Result = OPI_GoogleCalendar.DeleteCalendarFromList(Token, Calendar);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -26,13 +26,13 @@ sidebar_position: 5
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Black = "#000000";
|
||||
Yellow = "#ffd800";
|
||||
|
||||
Response = OPI_GoogleCalendar.EditListCalendar(Token, "55868c32be16935f0...", Black, Yellow, False); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
Token = "ya29.a0AcM612yhdixI9i7TxOgZIa9kwI5a42S4MfHVMdYZeolUKySbI7x1gtyAhGDlso57x7N6WNRpp9BZX0N3MQOcZEdR6lDciUHI4nof3u9xi...";
|
||||
Calendar = "1b68863d126f9c4d9e971c673e25f6601a9622beafbcc10913cd78120c755c6a@group.calendar.google.com";
|
||||
PrimaryColor = "#000000";
|
||||
SecondaryColor = "#ffd800";
|
||||
Hidden = False;
|
||||
|
||||
Result = OPI_GoogleCalendar.EditListCalendar(Token, Calendar, PrimaryColor, SecondaryColor, False);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -22,9 +22,8 @@ sidebar_position: 1
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_GoogleCalendar.GetCalendarList(Token); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
Token = "ya29.a0AcM612yhdixI9i7TxOgZIa9kwI5a42S4MfHVMdYZeolUKySbI7x1gtyAhGDlso57x7N6WNRpp9BZX0N3MQOcZEdR6lDciUHI4nof3u9xi...";
|
||||
Result = OPI_GoogleCalendar.GetCalendarList(Token);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -23,9 +23,10 @@ sidebar_position: 3
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_GoogleCalendar.GetListCalendar(Token, "55868c32be16935f0..."); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
Token = "ya29.a0AcM612yhdixI9i7TxOgZIa9kwI5a42S4MfHVMdYZeolUKySbI7x1gtyAhGDlso57x7N6WNRpp9BZX0N3MQOcZEdR6lDciUHI4nof3u9xi...";
|
||||
Calendar = "1b68863d126f9c4d9e971c673e25f6601a9622beafbcc10913cd78120c755c6a@group.calendar.google.com";
|
||||
|
||||
Result = OPI_GoogleCalendar.GetListCalendar(Token, Calendar);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -22,8 +22,9 @@ sidebar_position: 4
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_GoogleCalendar.ClearMainCalendar(Token);
|
||||
Token = "ya29.a0AcM612yhdixI9i7TxOgZIa9kwI5a42S4MfHVMdYZeolUKySbI7x1gtyAhGDlso57x7N6WNRpp9BZX0N3MQOcZEdR6lDciUHI4nof3u9xi...";
|
||||
|
||||
Result = OPI_GoogleCalendar.ClearMainCalendar(Token);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -23,9 +23,10 @@ sidebar_position: 1
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_GoogleCalendar.CreateCalendar(Token, "TestCalendar"); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
Token = "ya29.a0AcM612yhdixI9i7TxOgZIa9kwI5a42S4MfHVMdYZeolUKySbI7x1gtyAhGDlso57x7N6WNRpp9BZX0N3MQOcZEdR6lDciUHI4nof3u9xi...";
|
||||
Name = "TestCalendar";
|
||||
|
||||
Result = OPI_GoogleCalendar.CreateCalendar(Token, Name);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -23,9 +23,10 @@ sidebar_position: 5
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_GoogleCalendar.DeleteCalendar(Token, "55868c32be16935f0...");
|
||||
Response = OPI_Tools.JSONString(Response);
|
||||
Token = "ya29.a0AcM612yhdixI9i7TxOgZIa9kwI5a42S4MfHVMdYZeolUKySbI7x1gtyAhGDlso57x7N6WNRpp9BZX0N3MQOcZEdR6lDciUHI4nof3u9xi...";
|
||||
Calendar = "1b68863d126f9c4d9e971c673e25f6601a9622beafbcc10913cd78120c755c6a@group.calendar.google.com";
|
||||
|
||||
Result = OPI_GoogleCalendar.DeleteCalendar(Token, Calendar);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -25,11 +25,12 @@ sidebar_position: 3
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Name = "TestCalendar (change.)";
|
||||
Description = "TestDescription";
|
||||
Response = OPI_GoogleCalendar.EditCalendarMetadata(Token, "55868c32be16935f0...", Name, Description); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
Token = "ya29.a0AcM612yhdixI9i7TxOgZIa9kwI5a42S4MfHVMdYZeolUKySbI7x1gtyAhGDlso57x7N6WNRpp9BZX0N3MQOcZEdR6lDciUHI4nof3u9xi...";
|
||||
Calendar = "1b68863d126f9c4d9e971c673e25f6601a9622beafbcc10913cd78120c755c6a@group.calendar.google.com";
|
||||
Name = "New name";
|
||||
Description = "New description";
|
||||
|
||||
Result = OPI_GoogleCalendar.EditCalendarMetadata(Token, Calendar, Name, Description);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -23,9 +23,10 @@ sidebar_position: 2
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_GoogleCalendar.GetCalendarMetadata(Token, "55868c32be16935f0..."); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
Token = "ya29.a0AcM612yhdixI9i7TxOgZIa9kwI5a42S4MfHVMdYZeolUKySbI7x1gtyAhGDlso57x7N6WNRpp9BZX0N3MQOcZEdR6lDciUHI4nof3u9xi...";
|
||||
Calendar = "1b68863d126f9c4d9e971c673e25f6601a9622beafbcc10913cd78120c755c6a@group.calendar.google.com";
|
||||
|
||||
Result = OPI_GoogleCalendar.GetCalendarMetadata(Token, Calendar);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -24,22 +24,30 @@ sidebar_position: 4
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Attachments = New Map;
|
||||
Attachments.Insert("Image1", "https://opi.neocities.org/assets/images/logo_long-e8fdcca6ff8b32e679ea49a1ccdd3eac.png");
|
||||
Attachments.Insert("Image2", "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/Media/logo.png?v1");
|
||||
|
||||
EventMap = New Map;
|
||||
EventMap.Insert("Description", Description);
|
||||
EventMap.Insert("Title", Name);
|
||||
EventMap.Insert("Venue", "On office");
|
||||
EventMap.Insert("StartDate", CurrentSessionDate());
|
||||
EventMap.Insert("EndDate", EventMap["StartDate"] + 3600);
|
||||
EventMap.Insert("ArrayOfAttachmentURLs", Attachments);
|
||||
EventMap.Insert("SendNotifications", True);
|
||||
|
||||
Response = OPI_GoogleCalendar.CreateEvent(Token, Calendar, EventMap);
|
||||
Response = OPI_Tools.JSONString(Response);
|
||||
CurrentDate = OPI_Tools.GetCurrentDate();
|
||||
Token = "ya29.a0AcM612yhdixI9i7TxOgZIa9kwI5a42S4MfHVMdYZeolUKySbI7x1gtyAhGDlso57x7N6WNRpp9BZX0N3MQOcZEdR6lDciUHI4nof3u9xi...";
|
||||
Calendar = "1b68863d126f9c4d9e971c673e25f6601a9622beafbcc10913cd78120c755c6a@group.calendar.google.com";
|
||||
Name = "New event";
|
||||
Description = "TestEventDescription";
|
||||
Hour = 3600;
|
||||
|
||||
Image1 = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Binary or Path to file
|
||||
Image2 = "https://openintegrations.dev/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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -24,9 +24,11 @@ sidebar_position: 7
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_GoogleCalendar.DeleteEvent(Token, "55868c32be16935f0...", "j4nonfcc0m2..."); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
Token = "ya29.a0AcM612yhdixI9i7TxOgZIa9kwI5a42S4MfHVMdYZeolUKySbI7x1gtyAhGDlso57x7N6WNRpp9BZX0N3MQOcZEdR6lDciUHI4nof3u9xi...";
|
||||
Calendar = "1b68863d126f9c4d9e971c673e25f6601a9622beafbcc10913cd78120c755c6a@group.calendar.google.com";
|
||||
Event = "h51qr9dclbnie1hh633er26umo";
|
||||
|
||||
Result = OPI_GoogleCalendar.DeleteEvent(Token, Calendar, Event);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -25,12 +25,15 @@ sidebar_position: 6
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
EventMap = New Map;
|
||||
EventMap.Insert("Description", "Test event description (change.)");
|
||||
|
||||
Response = OPI_GoogleCalendar.EditEvent(Token, "55868c32be16935f0...", EventMap, "j4nonfcc0m2...");
|
||||
Response = OPI_Tools.JSONString(Response);
|
||||
Token = "ya29.a0AcM612yhdixI9i7TxOgZIa9kwI5a42S4MfHVMdYZeolUKySbI7x1gtyAhGDlso57x7N6WNRpp9BZX0N3MQOcZEdR6lDciUHI4nof3u9xi...";
|
||||
Calendar = "1b68863d126f9c4d9e971c673e25f6601a9622beafbcc10913cd78120c755c6a@group.calendar.google.com";
|
||||
Event = "h51qr9dclbnie1hh633er26umo";
|
||||
Description = "New event description";
|
||||
|
||||
EventDescription = New Map;
|
||||
EventDescription.Insert("Description", Description);
|
||||
|
||||
Result = OPI_GoogleCalendar.EditEvent(Token, Calendar, EventDescription, Event);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -23,9 +23,10 @@ sidebar_position: 2
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_GoogleCalendar.GetEventList(Token, "55868c32be16935f0...");
|
||||
Response = OPI_Tools.JSONString(Response);
|
||||
Token = "ya29.a0AcM612yhdixI9i7TxOgZIa9kwI5a42S4MfHVMdYZeolUKySbI7x1gtyAhGDlso57x7N6WNRpp9BZX0N3MQOcZEdR6lDciUHI4nof3u9xi...";
|
||||
Calendar = "1b68863d126f9c4d9e971c673e25f6601a9622beafbcc10913cd78120c755c6a@group.calendar.google.com";
|
||||
|
||||
Result = OPI_GoogleCalendar.GetEventList(Token, Calendar);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -24,9 +24,11 @@ sidebar_position: 3
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_GoogleCalendar.GetEvent(Token, "55868c32be16935f0...", "j4nonfcc0m2..."); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
Token = "ya29.a0AcM612yhdixI9i7TxOgZIa9kwI5a42S4MfHVMdYZeolUKySbI7x1gtyAhGDlso57x7N6WNRpp9BZX0N3MQOcZEdR6lDciUHI4nof3u9xi...";
|
||||
Calendar = "1b68863d126f9c4d9e971c673e25f6601a9622beafbcc10913cd78120c755c6a@group.calendar.google.com";
|
||||
Event = "h51qr9dclbnie1hh633er26umo";
|
||||
|
||||
Result = OPI_GoogleCalendar.GetEvent(Token, Calendar, Event);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -25,9 +25,13 @@ sidebar_position: 5
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_GoogleCalendar.MoveEvent(Token, "bayselonarrend@gmail.com", "55868c32be16935f0...", "j4nonfcc0m2..."); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
Token = "ya29.a0AcM612yhdixI9i7TxOgZIa9kwI5a42S4MfHVMdYZeolUKySbI7x1gtyAhGDlso57x7N6WNRpp9BZX0N3MQOcZEdR6lDciUHI4nof3u9xi...";
|
||||
Event = "h51qr9dclbnie1hh633er26umo";
|
||||
|
||||
SourceCalendar = "1b68863d126f9c4d9e971c673e25f6601a9622beafbcc10913cd78120c755c6a@group.calendar.google.com";
|
||||
TargetCalendar = "bayselonarrend@gmail.com";
|
||||
|
||||
Result = OPI_GoogleCalendar.MoveEvent(Token, SourceCalendar, TargetCalendar, Event);
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user