You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-12-01 22:29:52 +02:00
Main build (Jenkins)
This commit is contained in:
@@ -34,13 +34,13 @@ Method at API documentation: [DeleteMessage](https://green-api.com/docs/api/serv
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ChatID = FunctionParameters["GreenAPI_TestGroupID"];
|
||||
MessageID = FunctionParameters["GreenAPI_MessageID"];
|
||||
ChatID = "120363410406221140@g.us";
|
||||
MessageID = "BAE5CFA333B8BEC5";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.DeleteMessage(AccessParameters, ChatID, MessageID);
|
||||
|
||||
@@ -34,13 +34,13 @@ Method at API documentation: [EditMessage](https://green-api.com/docs/api/servic
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ChatID = FunctionParameters["GreenAPI_TestGroupID"];
|
||||
MessageID = FunctionParameters["GreenAPI_MessageID"];
|
||||
ChatID = "120363410406221140@g.us";
|
||||
MessageID = "BAE5CFA333B8BEC5";
|
||||
Text = "New message text";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
|
||||
@@ -34,15 +34,15 @@ Method at API documentation: [ForwardMessages](https://green-api.com/docs/api/se
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
From = "11001234567@c.us";
|
||||
Target = FunctionParameters["GreenAPI_TestGroupID"];
|
||||
Target = "120363410406221140@g.us";
|
||||
|
||||
Message = FunctionParameters["GreenAPI_MessageID"];
|
||||
Message = "BAE5CFA333B8BEC5";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.ForwardMessages(AccessParameters, From, Target, Message);
|
||||
|
||||
@@ -34,12 +34,12 @@ Method at API documentation: [SendContact](https://green-api.com/docs/api/sendin
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ChatID = FunctionParameters["GreenAPI_TestGroupID"];
|
||||
ChatID = "120363410406221140@g.us";
|
||||
|
||||
Phone = 79001234568;
|
||||
Name = "Artem";
|
||||
|
||||
@@ -36,14 +36,14 @@ Method at API documentation: [SendFileByUrl](https://green-api.com/docs/api/send
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
File = FunctionParameters["Picture"];
|
||||
File = "https://hut.openintegrations.dev/test_data/picture.jpg";
|
||||
FileName = "photo.jpg";
|
||||
ChatID = FunctionParameters["GreenAPI_TestGroupID"];
|
||||
ChatID = "120363410406221140@g.us";
|
||||
Description = "File description";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
|
||||
@@ -38,14 +38,14 @@ Parameters with Binary data type can also accept file paths on disk and URLs
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
File = FunctionParameters["Picture"]; // URL, Path or Binary Data
|
||||
File = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
FileName = "photo.jpg";
|
||||
ChatID = FunctionParameters["GreenAPI_TestGroupID"];
|
||||
ChatID = "120363410406221140@g.us";
|
||||
Description = "File description";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
|
||||
@@ -34,12 +34,12 @@ Method at API documentation: [SendPoll](https://green-api.com/docs/api/sending/S
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ChatID = FunctionParameters["GreenAPI_TestGroupID"];
|
||||
ChatID = "120363410406221140@g.us";
|
||||
|
||||
Latitude = 53.908522;
|
||||
Longitude = 27.574821;
|
||||
|
||||
@@ -36,12 +36,12 @@ Method at API documentation: [SendPoll](https://green-api.com/docs/api/sending/S
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ChatID = FunctionParameters["GreenAPI_TestGroupID"];
|
||||
ChatID = "120363410406221140@g.us";
|
||||
Text = "What's your favorite color?";
|
||||
|
||||
Options = New Array;
|
||||
|
||||
@@ -34,12 +34,12 @@ Method at API documentation: [SendMessage](https://green-api.com/docs/api/sendin
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
ApiUrl = FunctionParameters["GreenAPI_ApiURL"];
|
||||
MediaUrl = FunctionParameters["GreenAPI_MediaURL"];
|
||||
IdInstance = FunctionParameters["GreenAPI_IdInstance"];
|
||||
ApiTokenInstance = FunctionParameters["GreenAPI_Token"];
|
||||
ApiUrl = "https://7105.api.greenapi.com";
|
||||
MediaUrl = "https://7105.media.greenapi.com";
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ChatID = FunctionParameters["GreenAPI_TestGroupID"];
|
||||
ChatID = "120363410406221140@g.us";
|
||||
Text = "New message";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
|
||||
Reference in New Issue
Block a user