You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-29 22:27:42 +02:00
Main build (Jenkins)
This commit is contained in:
4
docs/en/data/RCON/CreateConnection.json
vendored
Normal file
4
docs/en/data/RCON/CreateConnection.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"URL": "127.0.0.1:25565",
|
||||
"Password": "Jg9F..."
|
||||
}
|
||||
4
docs/en/data/RCON/ExecuteCommand.json
vendored
Normal file
4
docs/en/data/RCON/ExecuteCommand.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"URL": "127.0.0.1:25565",
|
||||
"Password": "Jg9F..."
|
||||
}
|
||||
4
docs/en/data/RCON/FormConnectionParameters.json
vendored
Normal file
4
docs/en/data/RCON/FormConnectionParameters.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"URL": "127.0.0.1:25565",
|
||||
"Password": "Jg9F..."
|
||||
}
|
||||
2
docs/en/examples/GreenAPI/AddGroupMember.txt
vendored
2
docs/en/examples/GreenAPI/AddGroupMember.txt
vendored
@@ -3,7 +3,7 @@
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363400384727005@g.us";
|
||||
GroupID = "120363398372057168@g.us";
|
||||
UserID = "123123123@c.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363400384727005@g.us";
|
||||
GroupID = "120363398372057168@g.us";
|
||||
UserID = "123123123@c.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
From = "11001234567@c.us";
|
||||
Target = "120363410406221140@g.us";
|
||||
|
||||
Message = "BAE5A971ABCA3447";
|
||||
Message = "BAE5509D550DFFF0";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.ForwardMessages(AccessParameters, From, Target, Message);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363400384727005@g.us";
|
||||
GroupID = "120363398372057168@g.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.GetGroupInformation(AccessParameters, GroupID);
|
||||
|
||||
2
docs/en/examples/GreenAPI/GetMessage.txt
vendored
2
docs/en/examples/GreenAPI/GetMessage.txt
vendored
@@ -4,7 +4,7 @@
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ChatID = "120363410406221140@g.us";
|
||||
MessageID = "BAE5A971ABCA3447";
|
||||
MessageID = "BAE5509D550DFFF0";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.GetMessage(AccessParameters, ChatID, MessageID);
|
||||
|
||||
2
docs/en/examples/GreenAPI/LeaveGroup.txt
vendored
2
docs/en/examples/GreenAPI/LeaveGroup.txt
vendored
@@ -3,7 +3,7 @@
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363400384727005@g.us";
|
||||
GroupID = "120363398372057168@g.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.LeaveGroup(AccessParameters, GroupID);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363400384727005@g.us";
|
||||
GroupID = "120363398372057168@g.us";
|
||||
UserID = "123123123@c.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
|
||||
2
docs/en/examples/GreenAPI/SetAdminRights.txt
vendored
2
docs/en/examples/GreenAPI/SetAdminRights.txt
vendored
@@ -3,7 +3,7 @@
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363400384727005@g.us";
|
||||
GroupID = "120363398372057168@g.us";
|
||||
UserID = "123123123@c.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
Image = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
GroupID = "120363400384727005@g.us";
|
||||
GroupID = "120363398372057168@g.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.SetGroupPicture(AccessParameters, GroupID, Image);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363400384727005@g.us";
|
||||
GroupID = "120363398372057168@g.us";
|
||||
Name = "New name";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
|
||||
7
docs/en/examples/RCON/CreateConnection.txt
vendored
Normal file
7
docs/en/examples/RCON/CreateConnection.txt
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
URL = "127.0.0.1:25565";
|
||||
Password = "Jg9F...";
|
||||
WriteTimeout = 20;
|
||||
ReadTimeout = 20;
|
||||
|
||||
ConnectionParams = OPI_RCON.FormConnectionParameters(URL, Password, ReadTimeout, WriteTimeout);
|
||||
Result = OPI_RCON.CreateConnection(ConnectionParams);
|
||||
10
docs/en/examples/RCON/ExecuteCommand.txt
vendored
Normal file
10
docs/en/examples/RCON/ExecuteCommand.txt
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
URL = "127.0.0.1:25565";
|
||||
Password = "Jg9F...";
|
||||
WriteTimeout = 20;
|
||||
ReadTimeout = 20;
|
||||
|
||||
ConnectionParams = OPI_RCON.FormConnectionParameters(URL, Password, ReadTimeout, WriteTimeout);
|
||||
Connection = OPI_RCON.CreateConnection(ConnectionParams);
|
||||
|
||||
Command = "list";
|
||||
Result = OPI_RCON.ExecuteCommand(Command, Connection);
|
||||
6
docs/en/examples/RCON/FormConnectionParameters.txt
vendored
Normal file
6
docs/en/examples/RCON/FormConnectionParameters.txt
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
URL = "127.0.0.1:25565";
|
||||
Password = "Jg9F...";
|
||||
WriteTimeout = 20;
|
||||
ReadTimeout = 20;
|
||||
|
||||
Result = OPI_RCON.FormConnectionParameters(URL, Password, ReadTimeout, WriteTimeout);
|
||||
@@ -36,7 +36,7 @@ Method at API documentation: [AddGroupParticipant](https://green-api.com/docs/ap
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363400384727005@g.us";
|
||||
GroupID = "120363398372057168@g.us";
|
||||
UserID = "123123123@c.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
|
||||
@@ -36,7 +36,7 @@ Method at API documentation: [RemoveGroupParticipant](https://green-api.com/docs
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363400384727005@g.us";
|
||||
GroupID = "120363398372057168@g.us";
|
||||
UserID = "123123123@c.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
|
||||
@@ -35,7 +35,7 @@ Method at API documentation: [GetGroupData](https://green-api.com/docs/api/group
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363400384727005@g.us";
|
||||
GroupID = "120363398372057168@g.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.GetGroupInformation(AccessParameters, GroupID);
|
||||
|
||||
@@ -35,7 +35,7 @@ Method at API documentation: [LeaveGroup](https://green-api.com/docs/api/groups/
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363400384727005@g.us";
|
||||
GroupID = "120363398372057168@g.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.LeaveGroup(AccessParameters, GroupID);
|
||||
|
||||
@@ -36,7 +36,7 @@ Method at API documentation: [RemoveAdmin](https://green-api.com/docs/api/groups
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363400384727005@g.us";
|
||||
GroupID = "120363398372057168@g.us";
|
||||
UserID = "123123123@c.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
|
||||
@@ -36,7 +36,7 @@ Method at API documentation: [SetGroupAdmin](https://green-api.com/docs/api/grou
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363400384727005@g.us";
|
||||
GroupID = "120363398372057168@g.us";
|
||||
UserID = "123123123@c.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
|
||||
@@ -39,7 +39,7 @@ Parameters with Binary data type can also accept file paths on disk and URLs
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
Image = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
GroupID = "120363400384727005@g.us";
|
||||
GroupID = "120363398372057168@g.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.SetGroupPicture(AccessParameters, GroupID, Image);
|
||||
|
||||
@@ -36,7 +36,7 @@ Method at API documentation: [UpdateGroupName](https://green-api.com/docs/api/gr
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363400384727005@g.us";
|
||||
GroupID = "120363398372057168@g.us";
|
||||
Name = "New name";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
|
||||
@@ -37,7 +37,7 @@ Method at API documentation: [GetMessage](https://green-api.com/docs/api/journal
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ChatID = "120363410406221140@g.us";
|
||||
MessageID = "BAE5A971ABCA3447";
|
||||
MessageID = "BAE5509D550DFFF0";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.GetMessage(AccessParameters, ChatID, MessageID);
|
||||
|
||||
@@ -40,7 +40,7 @@ Method at API documentation: [ForwardMessages](https://green-api.com/docs/api/se
|
||||
From = "11001234567@c.us";
|
||||
Target = "120363410406221140@g.us";
|
||||
|
||||
Message = "BAE5A971ABCA3447";
|
||||
Message = "BAE5509D550DFFF0";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.ForwardMessages(AccessParameters, From, Target, Message);
|
||||
|
||||
45
docs/en/md/RCON/Commands-execution/Create-connection.mdx
vendored
Normal file
45
docs/en/md/RCON/Commands-execution/Create-connection.mdx
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Create Connection
|
||||
Opens a new RCON connection
|
||||
|
||||
|
||||
|
||||
`Function CreateConnection(Val ConnectionParams) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| ConnectionParams | - | Structure Of KeyAndValue | ✔ | Connection parameters. See FormConnectionParameters |
|
||||
|
||||
|
||||
Returns: Arbitrary - Connector object or structure with error information
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
:::caution
|
||||
**NOCLI:** this method is not available in CLI version
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
URL = "127.0.0.1:25565";
|
||||
Password = "Jg9F...";
|
||||
WriteTimeout = 20;
|
||||
ReadTimeout = 20;
|
||||
|
||||
ConnectionParams = OPI_RCON.FormConnectionParameters(URL, Password, ReadTimeout, WriteTimeout);
|
||||
Result = OPI_RCON.CreateConnection(ConnectionParams);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
48
docs/en/md/RCON/Commands-execution/Execute-command.mdx
vendored
Normal file
48
docs/en/md/RCON/Commands-execution/Execute-command.mdx
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Execute command
|
||||
Executes the command on the server
|
||||
|
||||
|
||||
|
||||
`Function ExecuteCommand(Val Command, Val Connection) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Command | --exec | String | ✔ | Command text |
|
||||
| Connection | --conn | Arbitrary, Structure Of KeyAndValue | ✔ | Connection or connection parameters |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Result of command execution
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
When passing connection parameters, a new connection will be created and closed within the execution of a single command. To execute several commands (in OS and 1C versions), it is recommended to use a connection created in advance (see CreateConnection)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
URL = "127.0.0.1:25565";
|
||||
Password = "Jg9F...";
|
||||
WriteTimeout = 20;
|
||||
ReadTimeout = 20;
|
||||
|
||||
ConnectionParams = OPI_RCON.FormConnectionParameters(URL, Password, ReadTimeout, WriteTimeout);
|
||||
Connection = OPI_RCON.CreateConnection(ConnectionParams);
|
||||
|
||||
Command = "list";
|
||||
Result = OPI_RCON.ExecuteCommand(Command, Connection);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
42
docs/en/md/RCON/Commands-execution/Form-connection-parameters.mdx
vendored
Normal file
42
docs/en/md/RCON/Commands-execution/Form-connection-parameters.mdx
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Form connection parameters
|
||||
Forms a collection of connection parameters
|
||||
|
||||
|
||||
|
||||
`Function FormConnectionParameters(Val URL, Val Password, Val ReadTimeout = 30, Val WriteTimeout = 30) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| URL | --url | String | ✔ | Server URL |
|
||||
| Password | --pass | String | ✔ | Password for connection |
|
||||
| ReadTimeout | --rtout | Number | ✖ | Response timeout (in seconds) |
|
||||
| WriteTimeout | --wtout | Number | ✖ | Request sending timeout (in seconds) |
|
||||
|
||||
|
||||
Returns: Structure Of KeyAndValue - Structure of connection parameters
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
URL = "127.0.0.1:25565";
|
||||
Password = "Jg9F...";
|
||||
WriteTimeout = 20;
|
||||
ReadTimeout = 20;
|
||||
|
||||
Result = OPI_RCON.FormConnectionParameters(URL, Password, ReadTimeout, WriteTimeout);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
39
docs/en/md/RCON/Commands-execution/Is-connector.mdx
vendored
Normal file
39
docs/en/md/RCON/Commands-execution/Is-connector.mdx
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Is connector
|
||||
Checks that the value is an object of an RCON AddIn
|
||||
|
||||
|
||||
|
||||
`Function IsConnector(Val Value) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Value | - | Arbitrary | ✔ | Value to check |
|
||||
|
||||
|
||||
Returns: Boolean - Is connector
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
:::caution
|
||||
**NOCLI:** this method is not available in CLI version
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
4
docs/en/md/RCON/Commands-execution/_category_.json
vendored
Normal file
4
docs/en/md/RCON/Commands-execution/_category_.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Commands execution",
|
||||
"position": "2"
|
||||
}
|
||||
Reference in New Issue
Block a user