1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00

Дополнение доков по B24

This commit is contained in:
Anton Titovets
2024-07-10 11:59:55 +03:00
parent 0ff2e321c8
commit 3e9b966df2
825 changed files with 13405 additions and 3686 deletions
@@ -6,6 +6,11 @@ sidebar_position: 2
Adds an existing calendar to the user's list
<br/>
*Function AddCalendarToList(Val Token, Val Calendar) Export*
| Parameter | CLI option | Type | Destination |
@@ -16,14 +21,15 @@ sidebar_position: 2
Returns: Map Of KeyAndValue - 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"
@@ -31,10 +37,8 @@ sidebar_position: 2
```
```json title="Result"
{
{
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
@@ -53,5 +57,4 @@ sidebar_position: 2
"etag": "\"1708423365033000\"",
"kind": "calendar#calendarListEntry"
}
```
@@ -6,6 +6,11 @@ sidebar_position: 4
Removes a calendar from the user's list
<br/>
*Function DeleteCalendarFromList(Val Token, Val Calendar) Export*
| Parameter | CLI option | Type | Destination |
@@ -16,14 +21,15 @@ sidebar_position: 4
Returns: Map Of KeyAndValue - 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"
@@ -31,9 +37,6 @@ sidebar_position: 4
```
```json title="Result"
""
""
```
@@ -6,6 +6,11 @@ sidebar_position: 5
Edits the properties of a calendar from the user's list
<br/>
*Function EditListCalendar(Val Token, Val Calendar, Val PrimaryColor, Val SecondaryColor, Val Hidden = False) Export*
| Parameter | CLI option | Type | Destination |
@@ -19,8 +24,8 @@ sidebar_position: 5
Returns: Map Of KeyAndValue - serialized JSON response from Google
```bsl title="Code example"
Black = "#000000";
@@ -29,8 +34,9 @@ sidebar_position: 5
Response = OPI_GoogleCalendar.EditListCalendar(Token, "55868c32be16935f0...", Black, Yellow, False); //Map
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"
@@ -38,10 +44,8 @@ sidebar_position: 5
```
```json title="Result"
{
{
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
@@ -59,5 +63,4 @@ sidebar_position: 5
"etag": "\"1708424005038000\"",
"kind": "calendar#calendarListEntry"
}
```
@@ -6,6 +6,11 @@ sidebar_position: 1
Gets an array of account calendars
<br/>
*Function GetCalendarList(Val Token) Export*
| Parameter | CLI option | Type | Destination |
@@ -15,14 +20,15 @@ sidebar_position: 1
Returns: Map Of KeyAndValue - 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"
@@ -30,10 +36,8 @@ sidebar_position: 1
```
```json title="Result"
[
[
{
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
@@ -169,5 +173,4 @@ sidebar_position: 1
"kind": "calendar#calendarListEntry"
}
]
```
@@ -6,6 +6,11 @@ sidebar_position: 3
Gets a calendar from the user's list by ID
<br/>
*Function GetListCalendar(Val Token, Val Calendar) Export*
| Parameter | CLI option | Type | Destination |
@@ -16,14 +21,15 @@ sidebar_position: 3
Returns: Map Of KeyAndValue - 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"
@@ -31,10 +37,8 @@ sidebar_position: 3
```
```json title="Result"
{
{
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
@@ -52,5 +56,4 @@ sidebar_position: 3
"etag": "\"1708423563386000\"",
"kind": "calendar#calendarListEntry"
}
```
@@ -6,6 +6,11 @@ sidebar_position: 4
Clears the event list of the primary calendar
<br/>
*Function ClearMainCalendar(Val Token) Export*
| Parameter | CLI option | Type | Destination |
@@ -15,13 +20,14 @@ sidebar_position: 4
Returns: Map Of KeyAndValue - serialized JSON response from Google
```bsl title="Code example"
Response = OPI_GoogleCalendar.ClearMainCalendar(Token);
```
```sh title="CLI command example"
@@ -29,9 +35,6 @@ sidebar_position: 4
```
```json title="Result"
""
""
```
@@ -6,6 +6,11 @@ sidebar_position: 1
Creates an empty calendar
<br/>
*Function CreateCalendar(Val Token, Val Name) Export*
| Parameter | CLI option | Type | Destination |
@@ -16,14 +21,15 @@ sidebar_position: 1
Returns: Map Of KeyAndValue - 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"
@@ -31,10 +37,8 @@ sidebar_position: 1
```
```json title="Result"
{
{
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
@@ -46,5 +50,4 @@ sidebar_position: 1
"etag": "\"ZlOrbHnYjwJB0APkTQupgFm7F3s\"",
"kind": "calendar#calendar"
}
```
@@ -6,6 +6,11 @@ sidebar_position: 5
Deletes a calendar by ID
<br/>
*Function DeleteCalendar(Val Token, Val Calendar) Export*
| Parameter | CLI option | Type | Destination |
@@ -16,14 +21,15 @@ sidebar_position: 5
Returns: Map Of KeyAndValue - serialized JSON response from Google
```bsl title="Code example"
Response = OPI_GoogleCalendar.DeleteCalendar(Token, "55868c32be16935f0...");
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"
@@ -31,9 +37,6 @@ sidebar_position: 5
```
```json title="Result"
""
""
```
@@ -6,6 +6,11 @@ sidebar_position: 3
Edits properties of an existing calendar
<br/>
*Function EditCalendarMetadata(Val Token, Val Calendar, Val Name = "", Val Description = "") Export*
| Parameter | CLI option | Type | Destination |
@@ -18,16 +23,17 @@ sidebar_position: 3
Returns: Map Of KeyAndValue - 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"
@@ -35,10 +41,8 @@ sidebar_position: 3
```
```json title="Result"
{
{
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
@@ -51,5 +55,4 @@ sidebar_position: 3
"etag": "\"x8eLqpmgoxpEDEXmEbsZxxgmJhc\"",
"kind": "calendar#calendar"
}
```
@@ -6,6 +6,11 @@ sidebar_position: 2
Gets calendar information by ID
<br/>
*Function GetCalendarMetadata(Val Token, Val Calendar) Export*
| Parameter | CLI option | Type | Destination |
@@ -16,14 +21,15 @@ sidebar_position: 2
Returns: Map Of KeyAndValue - 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"
@@ -31,10 +37,8 @@ sidebar_position: 2
```
```json title="Result"
{
{
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
@@ -47,5 +51,4 @@ sidebar_position: 2
"etag": "\"4A10_PI6FFY129ggELzZ8veUU-U\"",
"kind": "calendar#calendar"
}
```
@@ -6,6 +6,11 @@ sidebar_position: 4
Creates a new event
<br/>
*Function CreateEvent(Val Token, Val Calendar, Val EventDescription) Export*
| Parameter | CLI option | Type | Destination |
@@ -17,8 +22,8 @@ sidebar_position: 4
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");
@@ -36,8 +41,9 @@ sidebar_position: 4
Response = OPI_GoogleCalendar.CreateEvent(Token, Calendar, EventMap);
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"
@@ -45,10 +51,8 @@ sidebar_position: 4
```
```json title="Result"
{
{
"eventType": "default",
"attachments": [
{
@@ -94,5 +98,4 @@ sidebar_position: 4
"etag": "\"3417013976948000\"",
"kind": "calendar#event"
}
```
@@ -6,6 +6,11 @@ sidebar_position: 7
Deletes an event by ID
<br/>
*Function DeleteEvent(Val Token, Val Calendar, Val Event) Export*
| Parameter | CLI option | Type | Destination |
@@ -17,14 +22,15 @@ sidebar_position: 7
Returns: Map Of KeyAndValue - 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"
@@ -32,9 +38,6 @@ sidebar_position: 7
```
```json title="Result"
""
""
```
@@ -6,6 +6,11 @@ sidebar_position: 6
Edits an existing event
<br/>
*Function EditEvent(Val Token, Val Calendar, Val EventDescription, Val Event) Export*
| Parameter | CLI option | Type | Destination |
@@ -18,8 +23,8 @@ sidebar_position: 6
Returns: Map Of KeyAndValue - serialized JSON response from Google
```bsl title="Code example"
EventMap = New Map;
EventMap.Insert("Description", "Test event description (change.)");
@@ -27,8 +32,9 @@ sidebar_position: 6
Response = OPI_GoogleCalendar.EditEvent(Token, "55868c32be16935f0...", EventMap, "j4nonfcc0m2...");
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"
@@ -36,10 +42,8 @@ sidebar_position: 6
```
```json title="Result"
{
{
"eventType": "default",
"attachments": [
{
@@ -85,5 +89,4 @@ sidebar_position: 6
"etag": "\"3417542724802000\"",
"kind": "calendar#event"
}
```
@@ -6,6 +6,11 @@ sidebar_position: 1
<br/>
*Function GetEventDescription() Export*
| Parameter | CLI option | Type | Destination |
@@ -14,11 +19,9 @@ sidebar_position: 1
Returns: Map Of KeyAndValue - Empty event template
```bsl title="Code example"
```
```sh title="CLI command example"
@@ -26,10 +29,8 @@ sidebar_position: 1
```
```json title="Result"
EventMap = New Map;
EventMap = New Map;
EventMap.Insert("Description", ""); // Event description
EventMap.Insert("Title", "New event"); // Title events
EventMap.Insert("Venue", ""); // String description of the venue of the event
@@ -37,5 +38,4 @@ EventMap = New Map;
EventMap.Insert("EndDate", EventMap["StartDate"] + 3600); // Date of end events
EventMap.Insert("ArrayOfAttachmentURLs", New Map); // Key - name, Value - URL to file
EventMap.Insert("SendNotifications", True); // Indication of sending notifications to participants
```
@@ -6,6 +6,11 @@ sidebar_position: 2
Gets the list of all calendar events
<br/>
*Function GetEventList(Val Token, Val Calendar) Export*
| Parameter | CLI option | Type | Destination |
@@ -16,14 +21,15 @@ sidebar_position: 2
Returns: Map Of KeyAndValue - Array of event maps
```bsl title="Code example"
Response = OPI_GoogleCalendar.GetEventList(Token, "55868c32be16935f0...");
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"
@@ -31,10 +37,8 @@ sidebar_position: 2
```
```json title="Result"
[
[
{
"eventType": "default",
"attachments": [
@@ -82,5 +86,4 @@ sidebar_position: 2
"kind": "calendar#event"
},
]
```
@@ -6,6 +6,11 @@ sidebar_position: 3
Gets an event by ID
<br/>
*Function GetEvent(Val Token, Val Calendar, Val Event) Export*
| Parameter | CLI option | Type | Destination |
@@ -17,14 +22,15 @@ sidebar_position: 3
Returns: Map Of KeyAndValue - 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"
@@ -32,10 +38,8 @@ sidebar_position: 3
```
```json title="Result"
{
{
"eventType": "default",
"attachments": [
{
@@ -81,5 +85,4 @@ sidebar_position: 3
"etag": "\"3417013976948000\"",
"kind": "calendar#event"
}
```
@@ -6,6 +6,11 @@ sidebar_position: 5
Moves an event to another calendar
<br/>
*Function MoveEvent(Val Token, Val SourceCalendar, Val TargetCalendar, Val Event) Export*
| Parameter | CLI option | Type | Destination |
@@ -18,14 +23,15 @@ sidebar_position: 5
Returns: Map Of KeyAndValue - 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"
@@ -33,10 +39,8 @@ sidebar_position: 5
```
```json title="Result"
{
{
"eventType": "default",
"attachments": [
{
@@ -82,5 +86,4 @@ sidebar_position: 5
"etag": "\"3417540102468000\"",
"kind": "calendar#event"
}
```