You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-07-15 01:34:30 +02:00
Main build (Jenkins)
This commit is contained in:
62
.github/workflows/oint_test_full_en.yml
vendored
62
.github/workflows/oint_test_full_en.yml
vendored
@ -1451,9 +1451,51 @@ jobs:
|
||||
key: logs-TCP
|
||||
path: ./docs/en/results/TCP
|
||||
|
||||
|
||||
Testing-GreenAPI:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [Decode, Build]
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
- uses: otymko/setup-onescript@v1.4
|
||||
with:
|
||||
version: 1.9.1
|
||||
|
||||
- name: Получить тестовые данные из кэша
|
||||
uses: actions/cache/restore@v3
|
||||
with:
|
||||
key: test-data
|
||||
path: ./data.json
|
||||
|
||||
- name: Установить asserts и 1testrunner
|
||||
run: |
|
||||
opm install asserts
|
||||
opm install 1testrunner
|
||||
|
||||
- name: Установить OInt
|
||||
run: |
|
||||
TEMP_DEB="$(mktemp)" &&
|
||||
wget -O "$TEMP_DEB" 'https://api.athenaeum.digital/tc/job/Release/lastSuccessfulBuild/artifact/1.20.0/oint_1.20.0_all_en.deb' &&
|
||||
sudo dpkg -i "$TEMP_DEB"
|
||||
rm -f "$TEMP_DEB"
|
||||
|
||||
|
||||
|
||||
- name: Account
|
||||
if: ${{ cancelled() }} == false
|
||||
run: oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./src/en/OInt/tests/Modules/internal/OPI_TestsCLI.os "CLI_GAPI_Account"
|
||||
|
||||
- name: Записать логи
|
||||
if: ${{ cancelled() }} == false
|
||||
uses: actions/cache/save@v3
|
||||
with:
|
||||
key: logs-GreenAPI
|
||||
path: ./docs/en/results/GreenAPI
|
||||
|
||||
Encode:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [Testing-Telegram,Testing-VK,Testing-Viber,Testing-Twitter,Testing-PostgreSQL,Testing-SQLite,Testing-YandexDisk,Testing-GoogleWorkspace,Testing-GoogleCalendar,Testing-GoogleDrive,Testing-GoogleSheets,Testing-Notion,Testing-Slack,Testing-Airtable,Testing-Dropbox,Testing-Bitrix24,Testing-VkTeams,Testing-Ozon,Testing-Neocities,Testing-CDEK,Testing-YandexMetrika,Testing-S3,Testing-TCP]
|
||||
needs: [Testing-Telegram,Testing-VK,Testing-Viber,Testing-Twitter,Testing-PostgreSQL,Testing-SQLite,Testing-YandexDisk,Testing-GoogleWorkspace,Testing-GoogleCalendar,Testing-GoogleDrive,Testing-GoogleSheets,Testing-Notion,Testing-Slack,Testing-Airtable,Testing-Dropbox,Testing-Bitrix24,Testing-VkTeams,Testing-Ozon,Testing-Neocities,Testing-CDEK,Testing-YandexMetrika,Testing-S3,Testing-TCP,Testing-GreenAPI]
|
||||
if: ${{ always() }}
|
||||
permissions:
|
||||
contents: write
|
||||
@ -1849,6 +1891,22 @@ jobs:
|
||||
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||
"https://api.github.com/repos/Bayselonarrend/OpenIntegrations/actions/caches?key=logs-TCP"
|
||||
|
||||
- name: Получить логи GreenAPI
|
||||
uses: actions/cache/restore@v3
|
||||
with:
|
||||
key: logs-GreenAPI
|
||||
path: ./docs/en/results/GreenAPI
|
||||
|
||||
|
||||
- name: Очистка логов GreenAPI
|
||||
run: |
|
||||
curl -L \
|
||||
-X DELETE \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
-H "Authorization: Bearer ${{ secrets.TOKEN }}" \
|
||||
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||
"https://api.github.com/repos/Bayselonarrend/OpenIntegrations/actions/caches?key=logs-GreenAPI"
|
||||
|
||||
|
||||
- name: Записать данные
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
@ -1861,7 +1919,7 @@ jobs:
|
||||
|
||||
Clear-Cache:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [Testing-Telegram, Testing-VK, Testing-Viber, Testing-Twitter, Testing-PostgreSQL, Testing-SQLite, Testing-YandexDisk, Testing-GoogleWorkspace, Testing-GoogleCalendar, Testing-GoogleDrive, Testing-GoogleSheets, Testing-Notion, Testing-Slack, Testing-Airtable, Testing-Dropbox, Testing-Bitrix24, Testing-VkTeams, Testing-Ozon, Testing-Neocities, Testing-CDEK, Testing-YandexMetrika, Testing-S3, Testing-TCP, Encode]
|
||||
needs: [Testing-Telegram, Testing-VK, Testing-Viber, Testing-Twitter, Testing-PostgreSQL, Testing-SQLite, Testing-YandexDisk, Testing-GoogleWorkspace, Testing-GoogleCalendar, Testing-GoogleDrive, Testing-GoogleSheets, Testing-Notion, Testing-Slack, Testing-Airtable, Testing-Dropbox, Testing-Bitrix24, Testing-VkTeams, Testing-Ozon, Testing-Neocities, Testing-CDEK, Testing-YandexMetrika, Testing-S3, Testing-TCP, Testing-GreenAPI, Encode]
|
||||
if: ${{ always() }}
|
||||
steps:
|
||||
- name: Очистка основного кэша
|
||||
|
11
ci/cli_ostesten
vendored
11
ci/cli_ostesten
vendored
@ -709,6 +709,17 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Testing-GreenAPI') {
|
||||
steps {
|
||||
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_TestsCLI.os" "CLI_GAPI_Account"'
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
post{
|
||||
always{
|
||||
|
16
ci/clitesten
vendored
16
ci/clitesten
vendored
@ -1445,6 +1445,22 @@ def test_greenapi(){
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe greenapi SetInstanceSettings --settings "test" --access "test" --debug --test '
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe greenapi GetInstanceStatus --access "test" --debug --test '
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe greenapi RebootInstance --access "test" --debug --test '
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe greenapi LogoutInstance --access "test" --debug --test '
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe greenapi GetQR --access "test" --debug --test '
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe greenapi GetInstanceSettingsStructure --empty "test" --debug --test '
|
||||
}
|
||||
|
16
ci/clitestru
vendored
16
ci/clitestru
vendored
@ -1445,6 +1445,22 @@ def test_greenapi(){
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe greenapi УстановитьНастройкиИнстанса --settings "test" --access "test" --debug --test '
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe greenapi ПолучитьСостояниеИнстанса --access "test" --debug --test '
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe greenapi ПерезапуститьИнстанс --access "test" --debug --test '
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe greenapi РазлогинитьИнстанс --access "test" --debug --test '
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe greenapi ПолучитьQR --access "test" --debug --test '
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe greenapi ПолучитьСтруктуруНастроекИнстанса --empty "test" --debug --test '
|
||||
}
|
||||
|
11
ci/ostesten
vendored
11
ci/ostesten
vendored
@ -709,6 +709,17 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Testing-GreenAPI') {
|
||||
steps {
|
||||
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_Tests.os" "GAPI_Account"'
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
post{
|
||||
always{
|
||||
|
6
docs/en/data/GreenAPI/GetInstanceStatus.json
vendored
Normal file
6
docs/en/data/GreenAPI/GetInstanceStatus.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"ApiUrl": "https://7105.api.greenapi.com",
|
||||
"MediaUrl": "https://7105.media.greenapi.com",
|
||||
"IdInstance": "71051...",
|
||||
"ApiTokenInstance": "425010d90e114aa6b78f0969e..."
|
||||
}
|
6
docs/en/data/GreenAPI/GetQR.json
vendored
Normal file
6
docs/en/data/GreenAPI/GetQR.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"ApiUrl": "https://7105.api.greenapi.com",
|
||||
"MediaUrl": "https://7105.media.greenapi.com",
|
||||
"IdInstance": "71051...",
|
||||
"ApiTokenInstance": "425010d90e114aa6b78f0969e..."
|
||||
}
|
6
docs/en/data/GreenAPI/LogoutInstance.json
vendored
Normal file
6
docs/en/data/GreenAPI/LogoutInstance.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"ApiUrl": "https://7105.api.greenapi.com",
|
||||
"MediaUrl": "https://7105.media.greenapi.com",
|
||||
"IdInstance": "71051...",
|
||||
"ApiTokenInstance": "425010d90e114aa6b78f0969e..."
|
||||
}
|
6
docs/en/data/GreenAPI/RebootInstance.json
vendored
Normal file
6
docs/en/data/GreenAPI/RebootInstance.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"ApiUrl": "https://7105.api.greenapi.com",
|
||||
"MediaUrl": "https://7105.media.greenapi.com",
|
||||
"IdInstance": "71051...",
|
||||
"ApiTokenInstance": "425010d90e114aa6b78f0969e..."
|
||||
}
|
7
docs/en/examples/GreenAPI/GetInstanceStatus.txt
vendored
Normal file
7
docs/en/examples/GreenAPI/GetInstanceStatus.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.GetInstanceStatus(AccessParameters);
|
7
docs/en/examples/GreenAPI/GetQR.txt
vendored
Normal file
7
docs/en/examples/GreenAPI/GetQR.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.GetQR(AccessParameters);
|
7
docs/en/examples/GreenAPI/LogoutInstance.txt
vendored
Normal file
7
docs/en/examples/GreenAPI/LogoutInstance.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.LogoutInstance(AccessParameters);
|
7
docs/en/examples/GreenAPI/RebootInstance.txt
vendored
Normal file
7
docs/en/examples/GreenAPI/RebootInstance.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.RebootInstance(AccessParameters);
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
sidebar_position: 8
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
|
44
docs/en/md/Green_API/Account/Get-instance-status.mdx
vendored
Normal file
44
docs/en/md/Green_API/Account/Get-instance-status.mdx
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Get instance status
|
||||
Gets instance status
|
||||
|
||||
|
||||
|
||||
`Function GetInstanceStatus(Val AccessParameters) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| AccessParameters | --access | Structure Of KeyAndValue | ✔ | Access parameters. See FormAccessParameters |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Green API
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [GetStateInstance](https://green-api.com/docs/api/account/GetStateInstance/)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.GetInstanceStatus(AccessParameters);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
44
docs/en/md/Green_API/Account/Get-qr.mdx
vendored
Normal file
44
docs/en/md/Green_API/Account/Get-qr.mdx
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
---
|
||||
sidebar_position: 7
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Get QR
|
||||
Receives authorization QR code
|
||||
|
||||
|
||||
|
||||
`Function GetQR(Val AccessParameters) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| AccessParameters | --access | Structure Of KeyAndValue | ✔ | Access parameters. See FormAccessParameters |
|
||||
|
||||
|
||||
Returns: BinaryData, Map Of KeyAndValue - QR code or error information
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [QR](https://green-api.com/docs/api/account/QR/)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.GetQR(AccessParameters);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
44
docs/en/md/Green_API/Account/Logout-instance.mdx
vendored
Normal file
44
docs/en/md/Green_API/Account/Logout-instance.mdx
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
---
|
||||
sidebar_position: 6
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Logout instance
|
||||
Unlogging the instance
|
||||
|
||||
|
||||
|
||||
`Function LogoutInstance(Val AccessParameters) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| AccessParameters | --access | Structure Of KeyAndValue | ✔ | Access parameters. See FormAccessParameters |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Green API
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [Logout](https://green-api.com/docs/api/account/Logout/)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.LogoutInstance(AccessParameters);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
44
docs/en/md/Green_API/Account/Reboot-instance.mdx
vendored
Normal file
44
docs/en/md/Green_API/Account/Reboot-instance.mdx
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Reboot instance
|
||||
Restarts the instance
|
||||
|
||||
|
||||
|
||||
`Function RebootInstance(Val AccessParameters) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| AccessParameters | --access | Structure Of KeyAndValue | ✔ | Access parameters. See FormAccessParameters |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Green API
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [Reboot](https://green-api.com/docs/api/account/Reboot/)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.RebootInstance(AccessParameters);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -23,7 +23,7 @@ import TabItem from '@theme/TabItem';
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [GetSettings](https://green-api.com/docs/api/account/SetSettings/)
|
||||
Method at API documentation: [SetSettings](https://green-api.com/docs/api/account/SetSettings/)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
6
docs/ru/data/GreenAPI/ПерезапуститьИнстанс.json
vendored
Normal file
6
docs/ru/data/GreenAPI/ПерезапуститьИнстанс.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"ApiUrl": "https://7105.api.greenapi.com",
|
||||
"MediaUrl": "https://7105.media.greenapi.com",
|
||||
"IdInstance": "71051...",
|
||||
"ApiTokenInstance": "425010d90e114aa6b78f0969e..."
|
||||
}
|
6
docs/ru/data/GreenAPI/ПолучитьQR.json
vendored
Normal file
6
docs/ru/data/GreenAPI/ПолучитьQR.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"ApiUrl": "https://7105.api.greenapi.com",
|
||||
"MediaUrl": "https://7105.media.greenapi.com",
|
||||
"IdInstance": "71051...",
|
||||
"ApiTokenInstance": "425010d90e114aa6b78f0969e..."
|
||||
}
|
6
docs/ru/data/GreenAPI/ПолучитьСостояниеИнстанса.json
vendored
Normal file
6
docs/ru/data/GreenAPI/ПолучитьСостояниеИнстанса.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"ApiUrl": "https://7105.api.greenapi.com",
|
||||
"MediaUrl": "https://7105.media.greenapi.com",
|
||||
"IdInstance": "71051...",
|
||||
"ApiTokenInstance": "425010d90e114aa6b78f0969e..."
|
||||
}
|
6
docs/ru/data/GreenAPI/РазлогинитьИнстанс.json
vendored
Normal file
6
docs/ru/data/GreenAPI/РазлогинитьИнстанс.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"ApiUrl": "https://7105.api.greenapi.com",
|
||||
"MediaUrl": "https://7105.media.greenapi.com",
|
||||
"IdInstance": "71051...",
|
||||
"ApiTokenInstance": "425010d90e114aa6b78f0969e..."
|
||||
}
|
7
docs/ru/examples/GreenAPI/ПерезапуститьИнстанс.txt
vendored
Normal file
7
docs/ru/examples/GreenAPI/ПерезапуститьИнстанс.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Результат = OPI_GreenAPI.ПерезапуститьИнстанс(ПараметрыДоступа);
|
7
docs/ru/examples/GreenAPI/ПолучитьQR.txt
vendored
Normal file
7
docs/ru/examples/GreenAPI/ПолучитьQR.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Результат = OPI_GreenAPI.ПолучитьQR(ПараметрыДоступа);
|
7
docs/ru/examples/GreenAPI/ПолучитьСостояниеИнстанса.txt
vendored
Normal file
7
docs/ru/examples/GreenAPI/ПолучитьСостояниеИнстанса.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Результат = OPI_GreenAPI.ПолучитьСостояниеИнстанса(ПараметрыДоступа);
|
7
docs/ru/examples/GreenAPI/РазлогинитьИнстанс.txt
vendored
Normal file
7
docs/ru/examples/GreenAPI/РазлогинитьИнстанс.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Результат = OPI_GreenAPI.РазлогинитьИнстанс(ПараметрыДоступа);
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
sidebar_position: 8
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
|
44
docs/ru/md/Green_API/Account/Get-instance-status.mdx
vendored
Normal file
44
docs/ru/md/Green_API/Account/Get-instance-status.mdx
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Получить состояние инстанса
|
||||
Получает состояние инстанса
|
||||
|
||||
|
||||
|
||||
`Функция ПолучитьСостояниеИнстанса(Знач ПараметрыДоступа) Экспорт`
|
||||
|
||||
| Параметр | CLI опция | Тип | Обяз. | Назначение |
|
||||
|-|-|-|-|-|
|
||||
| ПараметрыДоступа | --access | Структура Из КлючИЗначение | ✔ | Параметры доступа. См. СформироватьПараметрыДоступа |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Green API
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Метод в документации API: [GetStateInstance](https://green-api.com/docs/api/account/GetStateInstance/)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Результат = OPI_GreenAPI.ПолучитьСостояниеИнстанса(ПараметрыДоступа);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
44
docs/ru/md/Green_API/Account/Get-qr.mdx
vendored
Normal file
44
docs/ru/md/Green_API/Account/Get-qr.mdx
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
---
|
||||
sidebar_position: 7
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Получить QR
|
||||
Получает QR-код авторизации
|
||||
|
||||
|
||||
|
||||
`Функция ПолучитьQR(Знач ПараметрыДоступа) Экспорт`
|
||||
|
||||
| Параметр | CLI опция | Тип | Обяз. | Назначение |
|
||||
|-|-|-|-|-|
|
||||
| ПараметрыДоступа | --access | Структура Из КлючИЗначение | ✔ | Параметры доступа. См. СформироватьПараметрыДоступа |
|
||||
|
||||
|
||||
Возвращаемое значение: ДвоичныеДанные, Соответствие Из КлючИЗначение - QR код или информация об ошибке
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Метод в документации API: [QR](https://green-api.com/docs/api/account/QR/)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Результат = OPI_GreenAPI.ПолучитьQR(ПараметрыДоступа);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
44
docs/ru/md/Green_API/Account/Logout-instance.mdx
vendored
Normal file
44
docs/ru/md/Green_API/Account/Logout-instance.mdx
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
---
|
||||
sidebar_position: 6
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Разлогинить инстанс
|
||||
Разлогинивает инстанс
|
||||
|
||||
|
||||
|
||||
`Функция РазлогинитьИнстанс(Знач ПараметрыДоступа) Экспорт`
|
||||
|
||||
| Параметр | CLI опция | Тип | Обяз. | Назначение |
|
||||
|-|-|-|-|-|
|
||||
| ПараметрыДоступа | --access | Структура Из КлючИЗначение | ✔ | Параметры доступа. См. СформироватьПараметрыДоступа |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Green API
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Метод в документации API: [Logout](https://green-api.com/docs/api/account/Logout/)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Результат = OPI_GreenAPI.РазлогинитьИнстанс(ПараметрыДоступа);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
44
docs/ru/md/Green_API/Account/Reboot-instance.mdx
vendored
Normal file
44
docs/ru/md/Green_API/Account/Reboot-instance.mdx
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Перезапустить инстанс
|
||||
Перезапускает инстанс
|
||||
|
||||
|
||||
|
||||
`Функция ПерезапуститьИнстанс(Знач ПараметрыДоступа) Экспорт`
|
||||
|
||||
| Параметр | CLI опция | Тип | Обяз. | Назначение |
|
||||
|-|-|-|-|-|
|
||||
| ПараметрыДоступа | --access | Структура Из КлючИЗначение | ✔ | Параметры доступа. См. СформироватьПараметрыДоступа |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Green API
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Метод в документации API: [Reboot](https://green-api.com/docs/api/account/Reboot/)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Результат = OPI_GreenAPI.ПерезапуститьИнстанс(ПараметрыДоступа);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
12720
service/dictionaries/en.json
vendored
12720
service/dictionaries/en.json
vendored
File diff suppressed because it is too large
Load Diff
92
src/en/OInt/core/Modules/OPI_GreenAPI.os
vendored
92
src/en/OInt/core/Modules/OPI_GreenAPI.os
vendored
@ -97,7 +97,7 @@ EndFunction
|
||||
// Sets the instance settings
|
||||
//
|
||||
// Note
|
||||
// Method at API documentation: [GetSettings](@green-api.com/docs/api/account/SetSettings/)
|
||||
// Method at API documentation: [SetSettings](@green-api.com/docs/api/account/SetSettings/)
|
||||
//
|
||||
// Parameters:
|
||||
// Settings - Structure Of KeyAndValue - Instance settings. See GetInstanceSettingsStructure - settings
|
||||
@ -116,6 +116,96 @@ Function SetInstanceSettings(Val Settings, Val AccessParameters) Export
|
||||
|
||||
EndFunction
|
||||
|
||||
// Get instance status
|
||||
// Gets instance status
|
||||
//
|
||||
// Note
|
||||
// Method at API documentation: [GetStateInstance](@green-api.com/docs/api/account/GetStateInstance/)
|
||||
//
|
||||
// Parameters:
|
||||
// AccessParameters - Structure Of KeyAndValue - Access parameters. See FormAccessParameters - access
|
||||
//
|
||||
// Returns:
|
||||
// Map Of KeyAndValue - serialized JSON response from Green API
|
||||
Function GetInstanceStatus(Val AccessParameters) Export
|
||||
|
||||
URL = FormPrimaryURL(AccessParameters, "getStateInstance");
|
||||
Response = OPI_Tools.Get(URL);
|
||||
|
||||
Return Response;
|
||||
|
||||
EndFunction
|
||||
|
||||
// Reboot instance
|
||||
// Restarts the instance
|
||||
//
|
||||
// Note
|
||||
// Method at API documentation: [Reboot](@green-api.com/docs/api/account/Reboot/)
|
||||
//
|
||||
// Parameters:
|
||||
// AccessParameters - Structure Of KeyAndValue - Access parameters. See FormAccessParameters - access
|
||||
//
|
||||
// Returns:
|
||||
// Map Of KeyAndValue - serialized JSON response from Green API
|
||||
Function RebootInstance(Val AccessParameters) Export
|
||||
|
||||
URL = FormPrimaryURL(AccessParameters, "reboot");
|
||||
Response = OPI_Tools.Get(URL);
|
||||
|
||||
Return Response;
|
||||
|
||||
EndFunction
|
||||
|
||||
// Logout instance
|
||||
// Unlogging the instance
|
||||
//
|
||||
// Note
|
||||
// Method at API documentation: [Logout](@green-api.com/docs/api/account/Logout/)
|
||||
//
|
||||
// Parameters:
|
||||
// AccessParameters - Structure Of KeyAndValue - Access parameters. See FormAccessParameters - access
|
||||
//
|
||||
// Returns:
|
||||
// Map Of KeyAndValue - serialized JSON response from Green API
|
||||
Function LogoutInstance(Val AccessParameters) Export
|
||||
|
||||
URL = FormPrimaryURL(AccessParameters, "logout");
|
||||
Response = OPI_Tools.Get(URL);
|
||||
|
||||
Return Response;
|
||||
|
||||
EndFunction
|
||||
|
||||
// Get QR
|
||||
// Receives authorization QR code
|
||||
//
|
||||
// Note
|
||||
// Method at API documentation: [QR](@green-api.com/docs/api/account/QR/)
|
||||
//
|
||||
// Parameters:
|
||||
// AccessParameters - Structure Of KeyAndValue - Access parameters. See FormAccessParameters - access
|
||||
//
|
||||
// Returns:
|
||||
// BinaryData, Map Of KeyAndValue - QR code or error information
|
||||
Function GetQR(Val AccessParameters) Export
|
||||
|
||||
URL = FormPrimaryURL(AccessParameters, "qr");
|
||||
Response = OPI_Tools.Get(URL);
|
||||
|
||||
Try
|
||||
|
||||
If Response["type"] = "qrCode" Then
|
||||
Result = Base64Value(Response["message"]);
|
||||
EndIf;
|
||||
|
||||
Except
|
||||
Result = Response;
|
||||
EndTry;
|
||||
|
||||
Return Result;
|
||||
|
||||
EndFunction
|
||||
|
||||
// Get instance settings structure
|
||||
// Gets the structure template for instance settings
|
||||
//
|
||||
|
72
src/en/OInt/tests/Modules/internal/OPI_Tests.os
vendored
72
src/en/OInt/tests/Modules/internal/OPI_Tests.os
vendored
@ -2375,6 +2375,10 @@ Procedure GAPI_Account() Export
|
||||
GreenAPI_GetInstanceSettings(TestParameters);
|
||||
GreenAPI_GetInstanceSettingsStructure(TestParameters);
|
||||
GreenAPI_SetInstanceSettings(TestParameters);
|
||||
GreenAPI_GetInstanceStatus(TestParameters);
|
||||
GreenAPI_RebootInstance(TestParameters);
|
||||
//GreenAPI_LogoutInstance(TestParameters);
|
||||
//GreenAPI_GetQR(TestParameters);
|
||||
|
||||
EndProcedure
|
||||
|
||||
@ -18169,6 +18173,74 @@ Procedure GreenAPI_SetInstanceSettings(FunctionParameters)
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure GreenAPI_GetInstanceStatus(FunctionParameters)
|
||||
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.GetInstanceStatus(AccessParameters);
|
||||
|
||||
// END
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetInstanceStatus", "GreenAPI");
|
||||
OPI_TestDataRetrieval.Check_GreenAuth(Result);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure GreenAPI_RebootInstance(FunctionParameters)
|
||||
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.RebootInstance(AccessParameters);
|
||||
|
||||
// END
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "RebootInstance", "GreenAPI");
|
||||
OPI_TestDataRetrieval.Check_GreenReboot(Result);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure GreenAPI_GetQR(FunctionParameters)
|
||||
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.GetQR(AccessParameters);
|
||||
|
||||
// END
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetQR", "GreenAPI");
|
||||
OPI_TestDataRetrieval.Check_BinaryData(Result, 0);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure GreenAPI_LogoutInstance(FunctionParameters)
|
||||
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.LogoutInstance(AccessParameters);
|
||||
|
||||
// END
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "LogoutInstance", "GreenAPI");
|
||||
OPI_TestDataRetrieval.Check_GreenUnlogin(Result);
|
||||
|
||||
EndProcedure
|
||||
|
||||
#EndRegion
|
||||
|
||||
#EndRegion
|
||||
|
104
src/en/OInt/tests/Modules/internal/OPI_TestsCLI.os
vendored
104
src/en/OInt/tests/Modules/internal/OPI_TestsCLI.os
vendored
@ -2343,6 +2343,10 @@ Procedure CLI_GAPI_Account() Export
|
||||
CLI_GreenAPI_GetInstanceSettings(TestParameters);
|
||||
CLI_GreenAPI_GetInstanceSettingsStructure(TestParameters);
|
||||
CLI_GreenAPI_SetInstanceSettings(TestParameters);
|
||||
CLI_GreenAPI_GetInstanceStatus(TestParameters);
|
||||
CLI_GreenAPI_RebootInstance(TestParameters);
|
||||
CLI_GreenAPI_GetQR(TestParameters);
|
||||
CLI_GreenAPI_LogoutInstance(TestParameters);
|
||||
|
||||
EndProcedure
|
||||
|
||||
@ -20375,6 +20379,106 @@ Procedure CLI_GreenAPI_SetInstanceSettings(FunctionParameters)
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_GreenAPI_GetInstanceStatus(FunctionParameters)
|
||||
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("api" , ApiUrl);
|
||||
Options.Insert("media", MediaUrl);
|
||||
Options.Insert("id" , IdInstance);
|
||||
Options.Insert("token", ApiTokenInstance);
|
||||
|
||||
AccessParameters = OPI_TestDataRetrieval.ExecuteTestCLI("greenapi", "FormAccessParameters", Options);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("access", AccessParameters);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("greenapi", "GetInstanceStatus", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetInstanceStatus", "GreenAPI");
|
||||
OPI_TestDataRetrieval.Check_GreenAuth(Result);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_GreenAPI_RebootInstance(FunctionParameters)
|
||||
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("api" , ApiUrl);
|
||||
Options.Insert("media", MediaUrl);
|
||||
Options.Insert("id" , IdInstance);
|
||||
Options.Insert("token", ApiTokenInstance);
|
||||
|
||||
AccessParameters = OPI_TestDataRetrieval.ExecuteTestCLI("greenapi", "FormAccessParameters", Options);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("access", AccessParameters);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("greenapi", "RebootInstance", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "RebootInstance", "GreenAPI");
|
||||
OPI_TestDataRetrieval.Check_GreenReboot(Result);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_GreenAPI_GetQR(FunctionParameters)
|
||||
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("api" , ApiUrl);
|
||||
Options.Insert("media", MediaUrl);
|
||||
Options.Insert("id" , IdInstance);
|
||||
Options.Insert("token", ApiTokenInstance);
|
||||
|
||||
AccessParameters = OPI_TestDataRetrieval.ExecuteTestCLI("greenapi", "FormAccessParameters", Options);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("access", AccessParameters);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("greenapi", "GetQR", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetQR", "GreenAPI");
|
||||
OPI_TestDataRetrieval.Check_GreenAuth(Result);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_GreenAPI_LogoutInstance(FunctionParameters)
|
||||
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("api" , ApiUrl);
|
||||
Options.Insert("media", MediaUrl);
|
||||
Options.Insert("id" , IdInstance);
|
||||
Options.Insert("token", ApiTokenInstance);
|
||||
|
||||
AccessParameters = OPI_TestDataRetrieval.ExecuteTestCLI("greenapi", "FormAccessParameters", Options);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("access", AccessParameters);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("greenapi", "LogoutInstance", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "LogoutInstance", "GreenAPI");
|
||||
OPI_TestDataRetrieval.Check_GreenReboot(Result);
|
||||
|
||||
EndProcedure
|
||||
|
||||
#EndRegion
|
||||
|
||||
#EndRegion
|
||||
|
@ -2142,6 +2142,24 @@ Procedure Check_GreenSettingsSaving(Val Result) Export
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure Check_GreenAuth(Val Result) Export
|
||||
|
||||
ExpectsThat(Result["stateInstance"]).Равно("authorized");
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure Check_GreenReboot(Val Result) Export
|
||||
|
||||
ExpectsThat(Result["isReboot"]).Равно(True);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure Check_GreenUnlogin(Val Result) Export
|
||||
|
||||
ExpectsThat(Result["isLogout"]).Равно(True);
|
||||
|
||||
EndProcedure
|
||||
|
||||
#EndRegion
|
||||
|
||||
#EndRegion
|
||||
|
@ -97,7 +97,7 @@ EndFunction
|
||||
// Sets the instance settings
|
||||
//
|
||||
// Note
|
||||
// Method at API documentation: [GetSettings](@green-api.com/docs/api/account/SetSettings/)
|
||||
// Method at API documentation: [SetSettings](@green-api.com/docs/api/account/SetSettings/)
|
||||
//
|
||||
// Parameters:
|
||||
// Settings - Structure Of KeyAndValue - Instance settings. See GetInstanceSettingsStructure - settings
|
||||
@ -116,6 +116,96 @@ Function SetInstanceSettings(Val Settings, Val AccessParameters) Export
|
||||
|
||||
EndFunction
|
||||
|
||||
// Get instance status
|
||||
// Gets instance status
|
||||
//
|
||||
// Note
|
||||
// Method at API documentation: [GetStateInstance](@green-api.com/docs/api/account/GetStateInstance/)
|
||||
//
|
||||
// Parameters:
|
||||
// AccessParameters - Structure Of KeyAndValue - Access parameters. See FormAccessParameters - access
|
||||
//
|
||||
// Returns:
|
||||
// Map Of KeyAndValue - serialized JSON response from Green API
|
||||
Function GetInstanceStatus(Val AccessParameters) Export
|
||||
|
||||
URL = FormPrimaryURL(AccessParameters, "getStateInstance");
|
||||
Response = OPI_Tools.Get(URL);
|
||||
|
||||
Return Response;
|
||||
|
||||
EndFunction
|
||||
|
||||
// Reboot instance
|
||||
// Restarts the instance
|
||||
//
|
||||
// Note
|
||||
// Method at API documentation: [Reboot](@green-api.com/docs/api/account/Reboot/)
|
||||
//
|
||||
// Parameters:
|
||||
// AccessParameters - Structure Of KeyAndValue - Access parameters. See FormAccessParameters - access
|
||||
//
|
||||
// Returns:
|
||||
// Map Of KeyAndValue - serialized JSON response from Green API
|
||||
Function RebootInstance(Val AccessParameters) Export
|
||||
|
||||
URL = FormPrimaryURL(AccessParameters, "reboot");
|
||||
Response = OPI_Tools.Get(URL);
|
||||
|
||||
Return Response;
|
||||
|
||||
EndFunction
|
||||
|
||||
// Logout instance
|
||||
// Unlogging the instance
|
||||
//
|
||||
// Note
|
||||
// Method at API documentation: [Logout](@green-api.com/docs/api/account/Logout/)
|
||||
//
|
||||
// Parameters:
|
||||
// AccessParameters - Structure Of KeyAndValue - Access parameters. See FormAccessParameters - access
|
||||
//
|
||||
// Returns:
|
||||
// Map Of KeyAndValue - serialized JSON response from Green API
|
||||
Function LogoutInstance(Val AccessParameters) Export
|
||||
|
||||
URL = FormPrimaryURL(AccessParameters, "logout");
|
||||
Response = OPI_Tools.Get(URL);
|
||||
|
||||
Return Response;
|
||||
|
||||
EndFunction
|
||||
|
||||
// Get QR
|
||||
// Receives authorization QR code
|
||||
//
|
||||
// Note
|
||||
// Method at API documentation: [QR](@green-api.com/docs/api/account/QR/)
|
||||
//
|
||||
// Parameters:
|
||||
// AccessParameters - Structure Of KeyAndValue - Access parameters. See FormAccessParameters - access
|
||||
//
|
||||
// Returns:
|
||||
// BinaryData, Map Of KeyAndValue - QR code or error information
|
||||
Function GetQR(Val AccessParameters) Export
|
||||
|
||||
URL = FormPrimaryURL(AccessParameters, "qr");
|
||||
Response = OPI_Tools.Get(URL);
|
||||
|
||||
Try
|
||||
|
||||
If Response["type"] = "qrCode" Then
|
||||
Result = Base64Value(Response["message"]);
|
||||
EndIf;
|
||||
|
||||
Except
|
||||
Result = Response;
|
||||
EndTry;
|
||||
|
||||
Return Result;
|
||||
|
||||
EndFunction
|
||||
|
||||
// Get instance settings structure
|
||||
// Gets the structure template for instance settings
|
||||
//
|
||||
|
@ -2142,6 +2142,24 @@ Procedure Check_GreenSettingsSaving(Val Result) Export
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure Check_GreenAuth(Val Result) Export
|
||||
|
||||
ExpectsThat(Result["stateInstance"]).Равно("authorized");
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure Check_GreenReboot(Val Result) Export
|
||||
|
||||
ExpectsThat(Result["isReboot"]).Равно(True);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure Check_GreenUnlogin(Val Result) Export
|
||||
|
||||
ExpectsThat(Result["isLogout"]).Равно(True);
|
||||
|
||||
EndProcedure
|
||||
|
||||
#EndRegion
|
||||
|
||||
#EndRegion
|
||||
|
@ -2375,6 +2375,10 @@ Procedure GAPI_Account() Export
|
||||
GreenAPI_GetInstanceSettings(TestParameters);
|
||||
GreenAPI_GetInstanceSettingsStructure(TestParameters);
|
||||
GreenAPI_SetInstanceSettings(TestParameters);
|
||||
GreenAPI_GetInstanceStatus(TestParameters);
|
||||
GreenAPI_RebootInstance(TestParameters);
|
||||
//GreenAPI_LogoutInstance(TestParameters);
|
||||
//GreenAPI_GetQR(TestParameters);
|
||||
|
||||
EndProcedure
|
||||
|
||||
@ -18169,6 +18173,74 @@ Procedure GreenAPI_SetInstanceSettings(FunctionParameters)
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure GreenAPI_GetInstanceStatus(FunctionParameters)
|
||||
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.GetInstanceStatus(AccessParameters);
|
||||
|
||||
// END
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetInstanceStatus", "GreenAPI");
|
||||
OPI_TestDataRetrieval.Check_GreenAuth(Result);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure GreenAPI_RebootInstance(FunctionParameters)
|
||||
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.RebootInstance(AccessParameters);
|
||||
|
||||
// END
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "RebootInstance", "GreenAPI");
|
||||
OPI_TestDataRetrieval.Check_GreenReboot(Result);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure GreenAPI_GetQR(FunctionParameters)
|
||||
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.GetQR(AccessParameters);
|
||||
|
||||
// END
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetQR", "GreenAPI");
|
||||
OPI_TestDataRetrieval.Check_BinaryData(Result, 0);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure GreenAPI_LogoutInstance(FunctionParameters)
|
||||
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.LogoutInstance(AccessParameters);
|
||||
|
||||
// END
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "LogoutInstance", "GreenAPI");
|
||||
OPI_TestDataRetrieval.Check_GreenUnlogin(Result);
|
||||
|
||||
EndProcedure
|
||||
|
||||
#EndRegion
|
||||
|
||||
#EndRegion
|
||||
|
104
src/en/OPI/src/CommonModules/OPI_TestsCLI/Module.bsl
vendored
104
src/en/OPI/src/CommonModules/OPI_TestsCLI/Module.bsl
vendored
@ -2343,6 +2343,10 @@ Procedure CLI_GAPI_Account() Export
|
||||
CLI_GreenAPI_GetInstanceSettings(TestParameters);
|
||||
CLI_GreenAPI_GetInstanceSettingsStructure(TestParameters);
|
||||
CLI_GreenAPI_SetInstanceSettings(TestParameters);
|
||||
CLI_GreenAPI_GetInstanceStatus(TestParameters);
|
||||
CLI_GreenAPI_RebootInstance(TestParameters);
|
||||
CLI_GreenAPI_GetQR(TestParameters);
|
||||
CLI_GreenAPI_LogoutInstance(TestParameters);
|
||||
|
||||
EndProcedure
|
||||
|
||||
@ -20375,6 +20379,106 @@ Procedure CLI_GreenAPI_SetInstanceSettings(FunctionParameters)
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_GreenAPI_GetInstanceStatus(FunctionParameters)
|
||||
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("api" , ApiUrl);
|
||||
Options.Insert("media", MediaUrl);
|
||||
Options.Insert("id" , IdInstance);
|
||||
Options.Insert("token", ApiTokenInstance);
|
||||
|
||||
AccessParameters = OPI_TestDataRetrieval.ExecuteTestCLI("greenapi", "FormAccessParameters", Options);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("access", AccessParameters);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("greenapi", "GetInstanceStatus", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetInstanceStatus", "GreenAPI");
|
||||
OPI_TestDataRetrieval.Check_GreenAuth(Result);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_GreenAPI_RebootInstance(FunctionParameters)
|
||||
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("api" , ApiUrl);
|
||||
Options.Insert("media", MediaUrl);
|
||||
Options.Insert("id" , IdInstance);
|
||||
Options.Insert("token", ApiTokenInstance);
|
||||
|
||||
AccessParameters = OPI_TestDataRetrieval.ExecuteTestCLI("greenapi", "FormAccessParameters", Options);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("access", AccessParameters);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("greenapi", "RebootInstance", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "RebootInstance", "GreenAPI");
|
||||
OPI_TestDataRetrieval.Check_GreenReboot(Result);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_GreenAPI_GetQR(FunctionParameters)
|
||||
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("api" , ApiUrl);
|
||||
Options.Insert("media", MediaUrl);
|
||||
Options.Insert("id" , IdInstance);
|
||||
Options.Insert("token", ApiTokenInstance);
|
||||
|
||||
AccessParameters = OPI_TestDataRetrieval.ExecuteTestCLI("greenapi", "FormAccessParameters", Options);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("access", AccessParameters);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("greenapi", "GetQR", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetQR", "GreenAPI");
|
||||
OPI_TestDataRetrieval.Check_GreenAuth(Result);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_GreenAPI_LogoutInstance(FunctionParameters)
|
||||
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("api" , ApiUrl);
|
||||
Options.Insert("media", MediaUrl);
|
||||
Options.Insert("id" , IdInstance);
|
||||
Options.Insert("token", ApiTokenInstance);
|
||||
|
||||
AccessParameters = OPI_TestDataRetrieval.ExecuteTestCLI("greenapi", "FormAccessParameters", Options);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("access", AccessParameters);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("greenapi", "LogoutInstance", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "LogoutInstance", "GreenAPI");
|
||||
OPI_TestDataRetrieval.Check_GreenReboot(Result);
|
||||
|
||||
EndProcedure
|
||||
|
||||
#EndRegion
|
||||
|
||||
#EndRegion
|
||||
|
@ -83,6 +83,50 @@
|
||||
NewLine.Область = "Account";
|
||||
|
||||
|
||||
NewLine = CompositionTable.Add();
|
||||
NewLine.Библиотека = "greenapi";
|
||||
NewLine.Модуль = "OPI_GreenAPI";
|
||||
NewLine.Метод = "GetInstanceStatus";
|
||||
NewLine.МетодПоиска = "GETINSTANCESTATUS";
|
||||
NewLine.Параметр = "--access";
|
||||
NewLine.Описание = "Access parameters. See FormAccessParameters";
|
||||
NewLine.Область = "Account";
|
||||
NewLine.ОписаниеМетода = "Gets instance status";
|
||||
|
||||
|
||||
NewLine = CompositionTable.Add();
|
||||
NewLine.Библиотека = "greenapi";
|
||||
NewLine.Модуль = "OPI_GreenAPI";
|
||||
NewLine.Метод = "RebootInstance";
|
||||
NewLine.МетодПоиска = "REBOOTINSTANCE";
|
||||
NewLine.Параметр = "--access";
|
||||
NewLine.Описание = "Access parameters. See FormAccessParameters";
|
||||
NewLine.Область = "Account";
|
||||
NewLine.ОписаниеМетода = "Restarts the instance";
|
||||
|
||||
|
||||
NewLine = CompositionTable.Add();
|
||||
NewLine.Библиотека = "greenapi";
|
||||
NewLine.Модуль = "OPI_GreenAPI";
|
||||
NewLine.Метод = "LogoutInstance";
|
||||
NewLine.МетодПоиска = "LOGOUTINSTANCE";
|
||||
NewLine.Параметр = "--access";
|
||||
NewLine.Описание = "Access parameters. See FormAccessParameters";
|
||||
NewLine.Область = "Account";
|
||||
NewLine.ОписаниеМетода = "Unlogging the instance";
|
||||
|
||||
|
||||
NewLine = CompositionTable.Add();
|
||||
NewLine.Библиотека = "greenapi";
|
||||
NewLine.Модуль = "OPI_GreenAPI";
|
||||
NewLine.Метод = "GetQR";
|
||||
NewLine.МетодПоиска = "GETQR";
|
||||
NewLine.Параметр = "--access";
|
||||
NewLine.Описание = "Access parameters. See FormAccessParameters";
|
||||
NewLine.Область = "Account";
|
||||
NewLine.ОписаниеМетода = "Receives authorization QR code";
|
||||
|
||||
|
||||
NewLine = CompositionTable.Add();
|
||||
NewLine.Библиотека = "greenapi";
|
||||
NewLine.Модуль = "OPI_GreenAPI";
|
||||
|
@ -83,6 +83,50 @@
|
||||
НоваяСтрока.Область = "Аккаунт";
|
||||
|
||||
|
||||
НоваяСтрока = ТаблицаСостава.Добавить();
|
||||
НоваяСтрока.Библиотека = "greenapi";
|
||||
НоваяСтрока.Модуль = "OPI_GreenAPI";
|
||||
НоваяСтрока.Метод = "ПолучитьСостояниеИнстанса";
|
||||
НоваяСтрока.МетодПоиска = "ПОЛУЧИТЬСОСТОЯНИЕИНСТАНСА";
|
||||
НоваяСтрока.Параметр = "--access";
|
||||
НоваяСтрока.Описание = "Параметры доступа. См. СформироватьПараметрыДоступа";
|
||||
НоваяСтрока.Область = "Аккаунт";
|
||||
НоваяСтрока.ОписаниеМетода = "Получает состояние инстанса";
|
||||
|
||||
|
||||
НоваяСтрока = ТаблицаСостава.Добавить();
|
||||
НоваяСтрока.Библиотека = "greenapi";
|
||||
НоваяСтрока.Модуль = "OPI_GreenAPI";
|
||||
НоваяСтрока.Метод = "ПерезапуститьИнстанс";
|
||||
НоваяСтрока.МетодПоиска = "ПЕРЕЗАПУСТИТЬИНСТАНС";
|
||||
НоваяСтрока.Параметр = "--access";
|
||||
НоваяСтрока.Описание = "Параметры доступа. См. СформироватьПараметрыДоступа";
|
||||
НоваяСтрока.Область = "Аккаунт";
|
||||
НоваяСтрока.ОписаниеМетода = "Перезапускает инстанс";
|
||||
|
||||
|
||||
НоваяСтрока = ТаблицаСостава.Добавить();
|
||||
НоваяСтрока.Библиотека = "greenapi";
|
||||
НоваяСтрока.Модуль = "OPI_GreenAPI";
|
||||
НоваяСтрока.Метод = "РазлогинитьИнстанс";
|
||||
НоваяСтрока.МетодПоиска = "РАЗЛОГИНИТЬИНСТАНС";
|
||||
НоваяСтрока.Параметр = "--access";
|
||||
НоваяСтрока.Описание = "Параметры доступа. См. СформироватьПараметрыДоступа";
|
||||
НоваяСтрока.Область = "Аккаунт";
|
||||
НоваяСтрока.ОписаниеМетода = "Разлогинивает инстанс";
|
||||
|
||||
|
||||
НоваяСтрока = ТаблицаСостава.Добавить();
|
||||
НоваяСтрока.Библиотека = "greenapi";
|
||||
НоваяСтрока.Модуль = "OPI_GreenAPI";
|
||||
НоваяСтрока.Метод = "ПолучитьQR";
|
||||
НоваяСтрока.МетодПоиска = "ПОЛУЧИТЬQR";
|
||||
НоваяСтрока.Параметр = "--access";
|
||||
НоваяСтрока.Описание = "Параметры доступа. См. СформироватьПараметрыДоступа";
|
||||
НоваяСтрока.Область = "Аккаунт";
|
||||
НоваяСтрока.ОписаниеМетода = "Получает QR-код авторизации";
|
||||
|
||||
|
||||
НоваяСтрока = ТаблицаСостава.Добавить();
|
||||
НоваяСтрока.Библиотека = "greenapi";
|
||||
НоваяСтрока.Модуль = "OPI_GreenAPI";
|
||||
|
Reference in New Issue
Block a user