You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
Перевод документации
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Add calendar to list
|
||||
Adds an existing calendar to the user's list
|
||||
|
||||
|
||||
*Function AddCalendarToList(Val Token, Val Calendar) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Calendar | --calendar | String | Calendar ID |
|
||||
|
||||
|
||||
Returns: Key-Value Pair - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Response = OPI_GoogleCalendar.AddCalendarToList(Token, "55868c32be16935f0..."); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gcalendar AddCalendarToList --token %token% --calendar %calendar%
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"conferenceProperties": {
|
||||
"allowedConferenceSolutionTypes": [
|
||||
"hangoutsMeet"
|
||||
]
|
||||
},
|
||||
"accessRole": "owner",
|
||||
"selected": true,
|
||||
"foregroundColor": "#000000",
|
||||
"backgroundColor": "#7bd148",
|
||||
"colorId": "9",
|
||||
"description": "TestDescription",
|
||||
"summary": "TestCalendar (change.)",
|
||||
"defaultReminders": [],
|
||||
"timeZone": "UTC",
|
||||
"id": "f0fad8c7db43ef0adb71cbf035eb08cf80d8f8d51ba31fa86f4d5680dc2e9725@group.calendar.google.com",
|
||||
"etag": "\"1708423365033000\"",
|
||||
"kind": "calendar#calendarListEntry"
|
||||
}
|
||||
|
||||
```
|
||||
@@ -0,0 +1,40 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
# Remove calendar from list
|
||||
Removes a calendar from the user's list
|
||||
|
||||
|
||||
*Function DeleteCalendarFromList(Val Token, Val Calendar) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Calendar | --calendar | String | Calendar ID |
|
||||
|
||||
|
||||
Returns: Key-Value Pair - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Response = OPI_GoogleCalendar.DeleteCalendarFromList(Token, "55868c32be16935f0..."); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gcalendar DeleteCalendarFromList --token %token% --calendar %calendar%
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
""
|
||||
|
||||
```
|
||||
@@ -0,0 +1,64 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# Edit list calendar
|
||||
Edits the properties of a calendar from the user's list
|
||||
|
||||
|
||||
*Function EditListCalendar(Val Token, Val Calendar, Val PrimaryColor, Val SecondaryColor, Val Hidden = False) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Calendar | --calendar | String | Calendar ID |
|
||||
| PrimaryColor | --primary | String | HEX primary color (#ffffff) |
|
||||
| SecondaryColor | --secondary | String | HEX secondary color (#ffffff) |
|
||||
| Hidden | --hidden | Boolean | Hidden calendar |
|
||||
|
||||
|
||||
Returns: Key-Value Pair - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
|
||||
Black = "#000000";
|
||||
Yellow = "#ffd800";
|
||||
|
||||
Response = OPI_GoogleCalendar.EditListCalendar(Token, "55868c32be16935f0...", Black, Yellow, False); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gcalendar EditListCalendar --token %token% --calendar %calendar% --primary %primary% --secondary %secondary% --hidden %hidden%
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"conferenceProperties": {
|
||||
"allowedConferenceSolutionTypes": [
|
||||
"hangoutsMeet"
|
||||
]
|
||||
},
|
||||
"accessRole": "owner",
|
||||
"foregroundColor": "#000000",
|
||||
"backgroundColor": "#ffd800",
|
||||
"colorId": "6",
|
||||
"description": "TestDescription",
|
||||
"summary": "TestCalendar (change.)",
|
||||
"defaultReminders": [],
|
||||
"timeZone": "UTC",
|
||||
"id": "0da65d69eba1e4b27f980447827b251ca2d94ecb1d30dba22c83559c33d0ea29@group.calendar.google.com",
|
||||
"etag": "\"1708424005038000\"",
|
||||
"kind": "calendar#calendarListEntry"
|
||||
}
|
||||
|
||||
```
|
||||
@@ -0,0 +1,174 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Get list of calendars
|
||||
Gets an array of account calendars
|
||||
|
||||
|
||||
*Function GetCalendarList(Val Token) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
|
||||
|
||||
Returns: Key-Value Pair - Array of calendar data mappings
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Response = OPI_GoogleCalendar.GetCalendarList(Token); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gcalendar GetCalendarList --token %token%
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
[
|
||||
{
|
||||
"conferenceProperties": {
|
||||
"allowedConferenceSolutionTypes": [
|
||||
"hangoutsMeet"
|
||||
]
|
||||
},
|
||||
"accessRole": "reader",
|
||||
"foregroundColor": "#000000",
|
||||
"backgroundColor": "#92e1c0",
|
||||
"colorId": "13",
|
||||
"description": "Hollydays.",
|
||||
"summary": "Hollydays",
|
||||
"defaultReminders": [],
|
||||
"timeZone": "Europe/Minsk",
|
||||
"id": "addressbook#contacts@group.v.calendar.google.com",
|
||||
"etag": "\"1708410978711000\"",
|
||||
"kind": "calendar#calendarListEntry"
|
||||
},
|
||||
{
|
||||
"conferenceProperties": {
|
||||
"allowedConferenceSolutionTypes": [
|
||||
"hangoutsMeet"
|
||||
]
|
||||
},
|
||||
"notificationSettings": {
|
||||
"notifications": [
|
||||
{
|
||||
"method": "email",
|
||||
"type": "eventCreation"
|
||||
},
|
||||
{
|
||||
"method": "email",
|
||||
"type": "eventChange"
|
||||
},
|
||||
{
|
||||
"method": "email",
|
||||
"type": "eventCancellation"
|
||||
},
|
||||
{
|
||||
"method": "email",
|
||||
"type": "eventResponse"
|
||||
}
|
||||
]
|
||||
},
|
||||
"accessRole": "owner",
|
||||
"selected": true,
|
||||
"foregroundColor": "#000000",
|
||||
"backgroundColor": "#9fe1e7",
|
||||
"colorId": "14",
|
||||
"primary": true,
|
||||
"summary": "bayselonarrend@gmail.com",
|
||||
"defaultReminders": [
|
||||
{
|
||||
"minutes": 30,
|
||||
"method": "popup"
|
||||
}
|
||||
],
|
||||
"timeZone": "Europe/Minsk",
|
||||
"id": "bayselonarrend@gmail.com",
|
||||
"etag": "\"1708411692097000\"",
|
||||
"kind": "calendar#calendarListEntry"
|
||||
},
|
||||
{
|
||||
"conferenceProperties": {
|
||||
"allowedConferenceSolutionTypes": [
|
||||
"hangoutsMeet"
|
||||
]
|
||||
},
|
||||
"accessRole": "reader",
|
||||
"foregroundColor": "#000000",
|
||||
"backgroundColor": "#16a765",
|
||||
"colorId": "8",
|
||||
"description": "Holidays and memorable dates in Belarus",
|
||||
"summary": "Holidays in Belarus",
|
||||
"defaultReminders": [],
|
||||
"timeZone": "Europe/Minsk",
|
||||
"id": "ru.by#holiday@group.v.calendar.google.com",
|
||||
"etag": "\"1708417568219000\"",
|
||||
"kind": "calendar#calendarListEntry"
|
||||
},
|
||||
{
|
||||
"conferenceProperties": {
|
||||
"allowedConferenceSolutionTypes": [
|
||||
"hangoutsMeet"
|
||||
]
|
||||
},
|
||||
"accessRole": "owner",
|
||||
"foregroundColor": "#000000",
|
||||
"backgroundColor": "#cca6ac",
|
||||
"colorId": "21",
|
||||
"description": "TestDescription",
|
||||
"summary": "TestCalendar (change.)",
|
||||
"defaultReminders": [],
|
||||
"timeZone": "UTC",
|
||||
"id": "9e3fe3b35b6a09a1fa9413a0deec2fe8e040ed7fdd0fdeb1e49028848269654d@group.calendar.google.com",
|
||||
"etag": "\"1708417602744000\"",
|
||||
"kind": "calendar#calendarListEntry"
|
||||
},
|
||||
{
|
||||
"conferenceProperties": {
|
||||
"allowedConferenceSolutionTypes": [
|
||||
"hangoutsMeet"
|
||||
]
|
||||
},
|
||||
"accessRole": "owner",
|
||||
"foregroundColor": "#000000",
|
||||
"backgroundColor": "#ffd800",
|
||||
"colorId": "6",
|
||||
"description": "TestDescription",
|
||||
"summary": "TestCalendar (change.)",
|
||||
"defaultReminders": [],
|
||||
"timeZone": "UTC",
|
||||
"id": "0047d950f70f380b8ff7e2fa538b6f9f10c8a3212d0740788545406cf73431b9@group.calendar.google.com",
|
||||
"etag": "\"1708417840630000\"",
|
||||
"kind": "calendar#calendarListEntry"
|
||||
},
|
||||
{
|
||||
"conferenceProperties": {
|
||||
"allowedConferenceSolutionTypes": [
|
||||
"hangoutsMeet"
|
||||
]
|
||||
},
|
||||
"accessRole": "owner",
|
||||
"foregroundColor": "#000000",
|
||||
"backgroundColor": "#ffd800",
|
||||
"colorId": "6",
|
||||
"description": "TestDescription",
|
||||
"summary": "TestCalendar (change.)",
|
||||
"defaultReminders": [],
|
||||
"timeZone": "UTC",
|
||||
"id": "b5c45ad216306688c4286a262bf66d3da38aaadec3b7a5768153740140ea787c@group.calendar.google.com",
|
||||
"etag": "\"1708418157716000\"",
|
||||
"kind": "calendar#calendarListEntry"
|
||||
}
|
||||
]
|
||||
|
||||
```
|
||||
@@ -0,0 +1,57 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Get list calendar
|
||||
Gets a calendar from the user's list by ID
|
||||
|
||||
|
||||
*Function GetListCalendar(Val Token, Val Calendar) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Calendar | --calendar | String | Calendar ID |
|
||||
|
||||
|
||||
Returns: Key-Value Pair - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Response = OPI_GoogleCalendar.GetListCalendar(Token, "55868c32be16935f0..."); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gcalendar GetListCalendar --token %token% --calendar %calendar%
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"conferenceProperties": {
|
||||
"allowedConferenceSolutionTypes": [
|
||||
"hangoutsMeet"
|
||||
]
|
||||
},
|
||||
"accessRole": "owner",
|
||||
"foregroundColor": "#000000",
|
||||
"backgroundColor": "#ffd800",
|
||||
"colorId": "6",
|
||||
"description": "TestDescription",
|
||||
"summary": "TestCalendar (change.)",
|
||||
"defaultReminders": [],
|
||||
"timeZone": "UTC",
|
||||
"id": "f0fad8c7db43ef0adb71cbf035eb08cf80d8f8d51ba31fa86f4d5680dc2e9725@group.calendar.google.com",
|
||||
"etag": "\"1708423563386000\"",
|
||||
"kind": "calendar#calendarListEntry"
|
||||
}
|
||||
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Calendar list management",
|
||||
"position": ""
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
# Clear primary calendar
|
||||
Clears the event list of the primary calendar
|
||||
|
||||
|
||||
*Function ClearMainCalendar(Val Token) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
|
||||
|
||||
Returns: Key-Value Pair - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Response = OPI_GoogleCalendar.ClearMainCalendar(Token);
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gcalendar ClearMainCalendar --token %token%
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
""
|
||||
|
||||
```
|
||||
@@ -0,0 +1,51 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Create calendar
|
||||
Creates an empty calendar
|
||||
|
||||
|
||||
*Function CreateCalendar(Val Token, Val Name) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Name | --title | String | Name of the created calendar |
|
||||
|
||||
|
||||
Returns: Key-Value Pair - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Response = OPI_GoogleCalendar.CreateCalendar(Token, "TestCalendar"); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gcalendar CreateCalendar --token %token% --title %title%
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"conferenceProperties": {
|
||||
"allowedConferenceSolutionTypes": [
|
||||
"hangoutsMeet"
|
||||
]
|
||||
},
|
||||
"summary": "TestCalendar",
|
||||
"timeZone": "UTC",
|
||||
"id": "75b64bec8700a640b004af3491867ac5e479884794f529699da23e7009f7d691@group.calendar.google.com",
|
||||
"etag": "\"ZlOrbHnYjwJB0APkTQupgFm7F3s\"",
|
||||
"kind": "calendar#calendar"
|
||||
}
|
||||
|
||||
```
|
||||
@@ -0,0 +1,39 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# Delete calendar
|
||||
Deletes a calendar by ID
|
||||
|
||||
|
||||
*Function DeleteCalendar(Val Token, Val Calendar) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Calendar | --calendar | String | Calendar ID |
|
||||
|
||||
|
||||
Returns: Key-Value Pair - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Response = OPI_GoogleCalendar.DeleteCalendar(Token, "55868c32be16935f0...");
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gcalendar DeleteCalendar --token %token% --calendar %calendar%
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
""
|
||||
|
||||
```
|
||||
@@ -0,0 +1,56 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Edit calendar
|
||||
Edits properties of an existing calendar
|
||||
|
||||
|
||||
*Function EditCalendarMetadata(Val Token, Val Calendar, Val Name = "", Val Description = "") Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Calendar | --calendar | String | Calendar ID |
|
||||
| Name | --title | String | New name |
|
||||
| Description | --description | String | New calendar description |
|
||||
|
||||
|
||||
Returns: Key-Value Pair - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Name = "TestCalendar (change.)";
|
||||
Description = "TestDescription";
|
||||
Response = OPI_GoogleCalendar.EditCalendarMetadata(Token, "55868c32be16935f0...", Name, Description); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gcalendar EditCalendarMetadata --token %token% --calendar %calendar% --title "TestCalendar (change.)" --description "TestDescription"
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"conferenceProperties": {
|
||||
"allowedConferenceSolutionTypes": [
|
||||
"hangoutsMeet"
|
||||
]
|
||||
},
|
||||
"description": "TestDescription",
|
||||
"summary": "TestCalendar (change.)",
|
||||
"timeZone": "UTC",
|
||||
"id": "75b64bec8700a640b004af3491867ac5e479884794f529699da23e7009f7d691@group.calendar.google.com",
|
||||
"etag": "\"x8eLqpmgoxpEDEXmEbsZxxgmJhc\"",
|
||||
"kind": "calendar#calendar"
|
||||
}
|
||||
|
||||
```
|
||||
@@ -0,0 +1,52 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Get calendar
|
||||
Gets calendar information by ID
|
||||
|
||||
|
||||
*Function GetCalendarMetadata(Val Token, Val Calendar) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Calendar | --calendar | String | Calendar ID |
|
||||
|
||||
|
||||
Returns: Key-Value Pair - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Response = OPI_GoogleCalendar.GetCalendarMetadata(Token, "55868c32be16935f0..."); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gcalendar GetCalendarMetadata --token %token% --calendar %calendar%
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"conferenceProperties": {
|
||||
"allowedConferenceSolutionTypes": [
|
||||
"hangoutsMeet"
|
||||
]
|
||||
},
|
||||
"description": "TestDescription",
|
||||
"summary": "TestCalendar (change.)",
|
||||
"timeZone": "UTC",
|
||||
"id": "155868c32be26e4c4123a107810d40b929b516935f080e4747261fdc3416227c@group.calendar.google.com",
|
||||
"etag": "\"4A10_PI6FFY129ggELzZ8veUU-U\"",
|
||||
"kind": "calendar#calendar"
|
||||
}
|
||||
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Calendar metadata management",
|
||||
"position": ""
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
# Create event
|
||||
Creates a new event
|
||||
|
||||
|
||||
*Function CreateEvent(Val Token, Val Calendar, Val EventDescription) ExportReturn EventManagement(Token, Calendar, EventDescription);EndFunction*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Calendar | --calendar | String | Calendar ID |
|
||||
| EventDescription | --props | Key-Value Pair | Event description |
|
||||
|
||||
|
||||
Returns: String, Arbitrary, HTTPResponse, BinaryData, Undefined - Google server response
|
||||
|
||||
```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");
|
||||
|
||||
EventMatch = New Map;
|
||||
EventMatch.Insert("Description", Description);
|
||||
EventMatch.Insert("Title", Name);
|
||||
EventMatch.Insert("Venue", "On office");
|
||||
EventMatch.Insert("StartDate", CurrentSessionDate());
|
||||
EventMatch.Insert("EndDate", EventMatch["StartDate"] + 3600);
|
||||
EventMatch.Insert("ArrayOfAttachmentURLs", Attachments);
|
||||
EventMatch.Insert("SendNotifications", True);
|
||||
|
||||
Response = OPI_GoogleCalendar.CreateEvent(Token, Calendar, EventMatch);
|
||||
Response = OPI_Tools.JSONString(Response);
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gcalendar CreateEvent --token %token% --calendar %calendar% --props %props%
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"eventType": "default",
|
||||
"attachments": [
|
||||
{
|
||||
"iconLink": "",
|
||||
"title": "Image2",
|
||||
"fileUrl": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/Media/logo.png?v1"
|
||||
},
|
||||
{
|
||||
"iconLink": "",
|
||||
"title": "Image1",
|
||||
"fileUrl": "https://opi.neocities.org/assets/images/logo_long-e8fdcca6ff8b32e679ea49a1ccdd3eac.png"
|
||||
}
|
||||
],
|
||||
"reminders": {
|
||||
"useDefault": true
|
||||
},
|
||||
"sequence": 0,
|
||||
"start": {
|
||||
"timeZone": "Europe/Minsk",
|
||||
"dateTime": "2024-02-21T15:16:25+03:00"
|
||||
},
|
||||
"creator": {
|
||||
"self": true,
|
||||
"email": "bayselonarrend@gmail.com"
|
||||
},
|
||||
"end": {
|
||||
"timeZone": "Europe/Minsk",
|
||||
"dateTime": "2024-02-21T16:16:25+03:00"
|
||||
},
|
||||
"iCalUID": "j4nonfcc0m2mtop1vc8ivo8tb8@google.com",
|
||||
"description": "TestEventDescription",
|
||||
"updated": "2024-02-21T09:16:28.474Z",
|
||||
"created": "2024-02-21T09:16:28.000Z",
|
||||
"htmlLink": "https://www.google.com/calendar/event?eid=ajRub25mY2MwbTJtdG9wMXZjOGl2bzh0YjggYmF5c2Vsb25hcnJlbmRAbQ",
|
||||
"location": "On office",
|
||||
"summary": "New event",
|
||||
"organizer": {
|
||||
"self": true,
|
||||
"email": "bayselonarrend@gmail.com"
|
||||
},
|
||||
"status": "confirmed",
|
||||
"id": "j4nonfcc0m2mtop1vc8ivo8tb8",
|
||||
"etag": "\"3417013976948000\"",
|
||||
"kind": "calendar#event"
|
||||
}
|
||||
|
||||
```
|
||||
@@ -0,0 +1,41 @@
|
||||
---
|
||||
sidebar_position: 7
|
||||
---
|
||||
|
||||
# Delete event
|
||||
Deletes an event by ID
|
||||
|
||||
|
||||
*Function DeleteEvent(Val Token, Val Calendar, Val Event) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Calendar | --calendar | String | Calendar ID |
|
||||
| Event | --event | String | Event ID |
|
||||
|
||||
|
||||
Returns: Key-Value Pair - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Response = OPI_GoogleCalendar.DeleteEvent(Token, "55868c32be16935f0...", "j4nonfcc0m2..."); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gcalendar DeleteEvent --token %token% --calendar %calendar% --event %event%
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
""
|
||||
|
||||
```
|
||||
@@ -0,0 +1,90 @@
|
||||
---
|
||||
sidebar_position: 6
|
||||
---
|
||||
|
||||
# Edit event
|
||||
Edits an existing event
|
||||
|
||||
|
||||
*Function EditEvent(Val Token, Val Calendar, Val EventDescription, Val Event) ExportReturn EventManagement(Token, Calendar, EventDescription, Event);EndFunction*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Calendar | --calendar | String | Calendar ID |
|
||||
| EventDescription | --props | String | New event description |
|
||||
| Event | --event | String | Event ID |
|
||||
|
||||
|
||||
Returns: Key-Value Pair - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
EventMatch = New Map;
|
||||
EventMatch.Insert("Description", "Test event description (change.)");
|
||||
|
||||
Response = OPI_GoogleCalendar.EditEvent(Token, "55868c32be16935f0...", EventMatch, "j4nonfcc0m2...");
|
||||
Response = OPI_Tools.JSONString(Response);
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gcalendar EditEvent --token %token% --calendar %calendar% --props %props% --event %event%
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"eventType": "default",
|
||||
"attachments": [
|
||||
{
|
||||
"iconLink": "",
|
||||
"title": "Image2",
|
||||
"fileUrl": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/Media/logo.png?v1"
|
||||
},
|
||||
{
|
||||
"iconLink": "",
|
||||
"title": "Image1",
|
||||
"fileUrl": "https://opi.neocities.org/assets/images/logo_long-e8fdcca6ff8b32e679ea49a1ccdd3eac.png"
|
||||
}
|
||||
],
|
||||
"reminders": {
|
||||
"useDefault": true
|
||||
},
|
||||
"sequence": 0,
|
||||
"start": {
|
||||
"timeZone": "Europe/Minsk",
|
||||
"dateTime": "2024-02-24T16:42:28+03:00"
|
||||
},
|
||||
"creator": {
|
||||
"self": true,
|
||||
"email": "bayselonarrend@gmail.com"
|
||||
},
|
||||
"end": {
|
||||
"timeZone": "Europe/Minsk",
|
||||
"dateTime": "2024-02-24T17:42:28+03:00"
|
||||
},
|
||||
"iCalUID": "7c2s6g3k6ib1mr2v1b7lnt9kfk@google.com",
|
||||
"description": "Test event description (change.)",
|
||||
"updated": "2024-02-24T10:42:42.401Z",
|
||||
"created": "2024-02-24T10:42:32.000Z",
|
||||
"htmlLink": "https://www.google.com/calendar/event?eid=N2MyczZnM2s2aWIxbXIydjFiN2xudDlrZmsgYmF5c2Vsb25hcnJlbmRAbQ",
|
||||
"location": "InOffice",
|
||||
"summary": "New event",
|
||||
"organizer": {
|
||||
"self": true,
|
||||
"email": "bayselonarrend@gmail.com"
|
||||
},
|
||||
"status": "confirmed",
|
||||
"id": "7c2s6g3k6ib1mr2v1b7lnt9kfk",
|
||||
"etag": "\"3417542724802000\"",
|
||||
"kind": "calendar#event"
|
||||
}
|
||||
|
||||
```
|
||||
@@ -0,0 +1,41 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Get description events
|
||||
|
||||
|
||||
|
||||
*Function GetEventDescription() Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
|
||||
|
||||
Returns: Key-Value Pair - Empty event template
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gcalendar GetEventDescription
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
EventMatch = New Map;
|
||||
EventMatch.Insert("Description", ""); // Event description
|
||||
EventMatch.Insert("Title", "New event"); // Title events
|
||||
EventMatch.Insert("Venue", ""); // String description of the venue of the event
|
||||
EventMatch.Insert("StartDate", CurrentSessionDate()); // Date of start events
|
||||
EventMatch.Insert("EndDate", EventMatch["StartDate"] + 3600); // Date of end events
|
||||
EventMatch.Insert("ArrayOfAttachmentURLs", New Map); // Key - name, Value - URL to file
|
||||
EventMatch.Insert("SendNotifications", True); // Indication of sending notifications to participants
|
||||
|
||||
```
|
||||
@@ -0,0 +1,89 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Get list of events
|
||||
Gets the list of all calendar events
|
||||
|
||||
|
||||
*Function GetEventList(Val Token, Val Calendar) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Calendar | --calendar | String | Calendar ID |
|
||||
|
||||
|
||||
Returns: Key-Value Pair - Array of event mappings
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Response = OPI_GoogleCalendar.GetEventList(Token, "55868c32be16935f0...");
|
||||
Response = OPI_Tools.JSONString(Response);
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gcalendar GetEventList --token %token% --calendar %calendar%
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
[
|
||||
|
||||
{
|
||||
"eventType": "default",
|
||||
"attachments": [
|
||||
{
|
||||
"iconLink": "",
|
||||
"title": "",
|
||||
"fileUrl": "https://opi.neocities.org/assets/images/logo_long-e8fdcca6ff8b32e679ea49a1ccdd3eac.png"
|
||||
},
|
||||
{
|
||||
"iconLink": "",
|
||||
"title": "",
|
||||
"fileUrl": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/Media/logo.png?v1"
|
||||
}
|
||||
],
|
||||
"reminders": {
|
||||
"useDefault": true
|
||||
},
|
||||
"sequence": 0,
|
||||
"start": {
|
||||
"timeZone": "Europe/Minsk",
|
||||
"dateTime": "2024-02-20T05:31:12+03:00"
|
||||
},
|
||||
"creator": {
|
||||
"self": true,
|
||||
"email": "bayselonarrend@gmail.com"
|
||||
},
|
||||
"end": {
|
||||
"timeZone": "Europe/Minsk",
|
||||
"dateTime": "2024-02-20T06:31:12+03:00"
|
||||
},
|
||||
"iCalUID": "o6dt8kbedrmu15o53pgbrrv35o@google.com",
|
||||
"description": "TestEventDescription",
|
||||
"updated": "2024-02-20T11:31:13.044Z",
|
||||
"created": "2024-02-20T11:31:13.000Z",
|
||||
"htmlLink": "https://www.google.com/calendar/event?eid=bzZkdDhrYmVkcm11MTVvNTNwZ2JycnYzNW8gYmF5c2Vsb25hcnJlbmRAbQ",
|
||||
"location": "On office",
|
||||
"summary": "New event",
|
||||
"organizer": {
|
||||
"self": true,
|
||||
"email": "bayselonarrend@gmail.com"
|
||||
},
|
||||
"status": "confirmed",
|
||||
"id": "o6dt8kbedrmu15o53pgbrrv35o",
|
||||
"etag": "\"3416857346088000\"",
|
||||
"kind": "calendar#event"
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
```
|
||||
@@ -0,0 +1,86 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Get event
|
||||
Gets an event by ID
|
||||
|
||||
|
||||
*Function GetEvent(Val Token, Val Calendar, Val Event) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Calendar | --calendar | String | Calendar ID |
|
||||
| Event | --event | String | Event ID |
|
||||
|
||||
|
||||
Returns: Key-Value Pair - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Response = OPI_GoogleCalendar.GetEvent(Token, "55868c32be16935f0...", "j4nonfcc0m2..."); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gcalendar GetEvent --token %token% --calendar %calendar% --event %event%
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"eventType": "default",
|
||||
"attachments": [
|
||||
{
|
||||
"iconLink": "",
|
||||
"title": "Image2",
|
||||
"fileUrl": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/Media/logo.png?v1"
|
||||
},
|
||||
{
|
||||
"iconLink": "",
|
||||
"title": "Image1",
|
||||
"fileUrl": "https://opi.neocities.org/assets/images/logo_long-e8fdcca6ff8b32e679ea49a1ccdd3eac.png"
|
||||
}
|
||||
],
|
||||
"reminders": {
|
||||
"useDefault": true
|
||||
},
|
||||
"sequence": 0,
|
||||
"start": {
|
||||
"timeZone": "Europe/Minsk",
|
||||
"dateTime": "2024-02-21T15:16:25+03:00"
|
||||
},
|
||||
"creator": {
|
||||
"self": true,
|
||||
"email": "bayselonarrend@gmail.com"
|
||||
},
|
||||
"end": {
|
||||
"timeZone": "Europe/Minsk",
|
||||
"dateTime": "2024-02-21T16:16:25+03:00"
|
||||
},
|
||||
"iCalUID": "j4nonfcc0m2mtop1vc8ivo8tb8@google.com",
|
||||
"description": "TestEventDescription",
|
||||
"updated": "2024-02-21T09:16:28.474Z",
|
||||
"created": "2024-02-21T09:16:28.000Z",
|
||||
"htmlLink": "https://www.google.com/calendar/event?eid=ajRub25mY2MwbTJtdG9wMXZjOGl2bzh0YjggYmF5c2Vsb25hcnJlbmRAbQ",
|
||||
"location": "On office",
|
||||
"summary": "New event",
|
||||
"organizer": {
|
||||
"self": true,
|
||||
"email": "bayselonarrend@gmail.com"
|
||||
},
|
||||
"status": "confirmed",
|
||||
"id": "j4nonfcc0m2mtop1vc8ivo8tb8",
|
||||
"etag": "\"3417013976948000\"",
|
||||
"kind": "calendar#event"
|
||||
}
|
||||
|
||||
```
|
||||
@@ -0,0 +1,87 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# Move event
|
||||
Moves an event to another calendar
|
||||
|
||||
|
||||
*Function MoveEvent(Val Token, Val SourceCalendar, Val TargetCalendar, Val Event) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| SourceCalendar | --from | String | ID of the source calendar |
|
||||
| TargetCalendar | --to | String | ID of the target calendar |
|
||||
| Event | --event | String | ID of the source calendar event |
|
||||
|
||||
|
||||
Returns: Key-Value Pair - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Response = OPI_GoogleCalendar.MoveEvent(Token, "bayselonarrend@gmail.com", "55868c32be16935f0...", "j4nonfcc0m2..."); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //String
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gcalendar MoveEvent --token %token% --from %from% --to %to% --event %event%
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"eventType": "default",
|
||||
"attachments": [
|
||||
{
|
||||
"iconLink": "",
|
||||
"title": "Image2",
|
||||
"fileUrl": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/Media/logo.png?v1"
|
||||
},
|
||||
{
|
||||
"iconLink": "",
|
||||
"title": "Image1",
|
||||
"fileUrl": "https://opi.neocities.org/assets/images/logo_long-e8fdcca6ff8b32e679ea49a1ccdd3eac.png"
|
||||
}
|
||||
],
|
||||
"reminders": {
|
||||
"useDefault": true
|
||||
},
|
||||
"sequence": 0,
|
||||
"start": {
|
||||
"timeZone": "Europe/Minsk",
|
||||
"dateTime": "2024-02-24T16:20:49+03:00"
|
||||
},
|
||||
"creator": {
|
||||
"self": true,
|
||||
"email": "bayselonarrend@gmail.com"
|
||||
},
|
||||
"end": {
|
||||
"timeZone": "Europe/Minsk",
|
||||
"dateTime": "2024-02-24T17:20:49+03:00"
|
||||
},
|
||||
"iCalUID": "f9kkj2omsqtt67g12qh2jig8uk@google.com",
|
||||
"description": "TestEventDescription",
|
||||
"updated": "2024-02-24T10:20:51.234Z",
|
||||
"created": "2024-02-24T10:20:49.000Z",
|
||||
"htmlLink": "https://www.google.com/calendar/event?eid=Zjlra2oyb21zcXR0NjdnMTJxaDJqaWc4dWsgYmF5c2Vsb25hcnJlbmRAbQ",
|
||||
"location": "InOffice",
|
||||
"summary": "New event",
|
||||
"organizer": {
|
||||
"self": true,
|
||||
"email": "bayselonarrend@gmail.com"
|
||||
},
|
||||
"status": "confirmed",
|
||||
"id": "f9kkj2omsqtt67g12qh2jig8uk",
|
||||
"etag": "\"3417540102468000\"",
|
||||
"kind": "calendar#event"
|
||||
}
|
||||
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Event management",
|
||||
"position": ""
|
||||
}
|
||||
Reference in New Issue
Block a user