You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-06 08:49:29 +02:00
Правки доков
This commit is contained in:
@@ -26,15 +26,13 @@ sidebar_position: 7
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
ButtonArray = New Array;
|
||||
ButtonArray = New Array;
|
||||
ButtonArray.Add("Button 1");
|
||||
ButtonArray.Add("Button 2");
|
||||
ButtonArray.Add("Button 3");
|
||||
|
||||
Keyboard = OPI_Viber.CreateKeyboardFromArrayButton(ButtonArray); //Structure
|
||||
JSON = OPI_Tools.JSONString(Keyboard); //String
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -46,7 +44,7 @@ sidebar_position: 7
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
{
|
||||
"Buttons": [
|
||||
{
|
||||
"ActionType": "reply",
|
||||
|
||||
@@ -28,13 +28,11 @@ sidebar_position: 4
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
BotToken = "523b5b25ed27e6ec-111111111111111-2222222222222222";
|
||||
BotToken = "523b5b25ed27e6ec-111111111111111-2222222222222222";
|
||||
UserID = "d3jxe1111111111jYGgZg==";
|
||||
|
||||
Response = OPI_Viber.SendContact(BotToken, "John Doe", "+749521231", UserID, False); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -46,7 +44,7 @@ sidebar_position: 4
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
{
|
||||
"billing_status": 1,
|
||||
"chat_hostname": "SN-CHAT-15_",
|
||||
"message_token": 5925747984748149627,
|
||||
|
||||
@@ -29,13 +29,11 @@ sidebar_position: 3
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
ChannelToken = "523b58ba82afffaa-111111111111111-2222222222222222";
|
||||
ChannelToken = "523b58ba82afffaa-111111111111111-2222222222222222";
|
||||
UserID = "tMNGh111111111D+bT4g==";
|
||||
|
||||
Response = OPI_Viber.SendFile(ChannelToken, "https://api.athenaeum.digital/1.txt", UserID, True, "txt"); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -47,7 +45,7 @@ sidebar_position: 3
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
{
|
||||
"chat_hostname": "SN-CHAT-09_",
|
||||
"message_token": 5925491906424759104,
|
||||
"status_message": "ok",
|
||||
|
||||
@@ -28,13 +28,11 @@ sidebar_position: 2
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
ChannelToken = "523b58ba82afffaa-111111111111111-2222222222222222";
|
||||
ChannelToken = "523b58ba82afffaa-111111111111111-2222222222222222";
|
||||
UserID = "tMNGh111111111D+bT4g==";
|
||||
|
||||
Response = OPI_Viber.SendImage(ChannelToken, "https://api.athenaeum.digital/logo.png", UserID, True, "Alpaca"); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -46,7 +44,7 @@ sidebar_position: 2
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
{
|
||||
"chat_hostname": "SN-CHAT-12_",
|
||||
"message_token": 5925484936191962157,
|
||||
"status_message": "ok",
|
||||
|
||||
@@ -27,13 +27,11 @@ sidebar_position: 6
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
BotToken = "523b5b25ed27e6ec-111111111111111-2222222222222222";
|
||||
BotToken = "523b5b25ed27e6ec-111111111111111-2222222222222222";
|
||||
UserID = "d3jxe1111111111jYGgZg==";
|
||||
|
||||
Response = OPI_Viber.SendLink(BotToken, "https://github.com/Bayselonarrend", UserID, False); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -45,7 +43,7 @@ sidebar_position: 6
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
{
|
||||
"billing_status": 1,
|
||||
"chat_hostname": "SN-CHAT-15_",
|
||||
"message_token": 5925752472607291800,
|
||||
|
||||
@@ -28,13 +28,11 @@ sidebar_position: 5
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
BotToken = "523b5b25ed27e6ec-111111111111111-2222222222222222";
|
||||
BotToken = "523b5b25ed27e6ec-111111111111111-2222222222222222";
|
||||
UserID = "d3jxe1111111111jYGgZg==";
|
||||
|
||||
Response = OPI_Viber.SendLocation(BotToken, "55.75", "37.6167", UserID, False); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -46,7 +44,7 @@ sidebar_position: 5
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
{
|
||||
"billing_status": 1,
|
||||
"chat_hostname": "SN-CHAT-10_",
|
||||
"message_token": 5925751017338988046,
|
||||
|
||||
@@ -28,8 +28,7 @@ sidebar_position: 1
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
BotToken = "523b5b25ed27e6ec-111111111111111-2222222222222222";
|
||||
BotToken = "523b5b25ed27e6ec-111111111111111-2222222222222222";
|
||||
UserID = "d3jxe1111111111jYGgZg==";
|
||||
|
||||
ButtonArray = New Array;
|
||||
@@ -42,7 +41,6 @@ sidebar_position: 1
|
||||
|
||||
Response = OPI_Viber.SendTextMessage(BotToken, "Hello", UserID, False, Keyboard); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -54,7 +52,7 @@ sidebar_position: 1
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
{
|
||||
"chat_hostname": "SN-CHAT-10_",
|
||||
"message_token": 5925400810709476620,
|
||||
"status_message": "ok",
|
||||
|
||||
@@ -24,10 +24,8 @@ Here you can get the channel's user IDs. Bot IDs need to be obtained from the We
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_Viber.GetChannelInformation(ChannelToken); //Map
|
||||
Response = OPI_Viber.GetChannelInformation(ChannelToken); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -39,7 +37,7 @@ Here you can get the channel's user IDs. Bot IDs need to be obtained from the We
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
{
|
||||
"members": [
|
||||
{
|
||||
"role": "admin",
|
||||
|
||||
@@ -25,10 +25,8 @@ sidebar_position: 4
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_Viber.GetOnlineUsers(Token, UserID); //Map
|
||||
Response = OPI_Viber.GetOnlineUsers(Token, UserID); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -40,7 +38,7 @@ sidebar_position: 4
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
{
|
||||
"users": [
|
||||
{
|
||||
"last_online": 1704796869778,
|
||||
|
||||
@@ -25,10 +25,8 @@ sidebar_position: 3
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_Viber.GetUserData(Token, UserID); //Map
|
||||
Response = OPI_Viber.GetUserData(Token, UserID); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -40,7 +38,7 @@ sidebar_position: 3
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
{
|
||||
"user": {
|
||||
"device_type": "iPhone8,4",
|
||||
"mnc": 1,
|
||||
|
||||
@@ -25,10 +25,8 @@ IMPORTANT: Setting up Webhook is mandatory according to Viber rules. You need to
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_Viber.SetWebhook(Token, "https://api.athenaeum.digital/opi/hs/viber"); //Map
|
||||
Response = OPI_Viber.SetWebhook(Token, "https://api.athenaeum.digital/opi/hs/viber"); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -40,7 +38,7 @@ IMPORTANT: Setting up Webhook is mandatory according to Viber rules. You need to
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
{
|
||||
"event_types": [
|
||||
"subscribed",
|
||||
"unsubscribed",
|
||||
|
||||
Reference in New Issue
Block a user