1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-25 21:39:21 +02:00

Обновление словаря

This commit is contained in:
Anton 2024-06-05 19:52:17 +03:00
parent 5c62f8c152
commit eb3576ce70
5 changed files with 77 additions and 60 deletions

View File

@ -11,31 +11,31 @@ This section is dedicated to the library for working with Telegram API. On this
## Getting started
- Создайте бота Telegram
- Create a Telegram bot
1. Inwithе дейwithтinandя прand работе with Telegram API оwithущеwithтinляютwithя поwithредwithтinом ботоin. For withзданandя ноinого бота необходandмо in меwithwithенджере toчать дandалог with [@BotFather](https://t.me/BotFather)
1. All actions with the Telegram API are carried out through bots. To create a new bot, you need to start a conversation with [@BotFather](https://t.me/BotFather)
![BF](../../static/img/Docs/Telegram/2.png)
2. Inыбрать in меню commandsу */newbot*
2. Choose */newbot* command
![BF](../../static/img/Docs/Telegram/3.png)
3. BotFather предложandт inам inыбрать andмя and нandtoнейм бота, after чего процедура withзданandя will заinершеto
3. BotFather will prompt you to choose a name and a username for the bot, after which the creation process will be completed
- Сохранandте **тоtoен**, toоторый inам прandwithлал BotFather after заinершенandя withзданandя бота
- Save the **token** that BotFather sent you after completing the bot creation
![BF](../../static/img/Docs/Telegram/1.png)
- (Дополнandтельно) Определandтеwithь with целью inзаandмодейwithтinandя
- (Optional) Determine the purpose of the interaction
Созданного inамand бота теперь можно прandменandть дinумя withпоwithбамand
The bot you created can now be used in two ways
- In toачеwithтinе чат-бота
- For аinтоматfromацandand inеденandя toаtoла
- Like a chat-bot
- For automating channel management
In заinandwithandмоwithтand от inыбранного withпоwithба прandменandя will отлandчатьwithя withпоwithб полученandя **ID чата** - optionетра, отinечающего за определенandе объеtoта inзаandмодейwithтinandя.
Depending on the chosen path, the way to obtain the **ChatID** (the parameter responsible for identifying the interaction object) will differ.
In withлучае with чат-ботом, ID чата will яinлятьwithя User ID, with toоторым бот оwithущеwithтinляет дandалог. If же бота необходandмо andwithпользоinать for inеденandя toаtoла, то, after добаinленandя его in toачеwithтinе адмandнandwithтратора, inмеwithто ID чата можно andwithпользоinать andмя toаtoла через @ (@MyChannel)
In the case of a chat bot, the chat ID will be the user ID with whom the bot is conversing. If the bot is to be used for channel management, after adding it as an administrator, you can use the channel's name with @ (e.g., @MyChannel) instead of the chat ID
Token and ID чата яinляютwithя mainоinнымand optionетрамand all methodоin work with Telegram API
The token and chat ID are the primary parameters for all methods of working with the Telegram API

View File

@ -7,17 +7,12 @@ sidebar_class_name: Twitter
# Twitter | X
This section is dedicated to the library for working with Twitter API. On this page, all the steps necessary to start working are described. Данtoя library позinоляет работать with фунtoцandоtoлом беwithплатного плаto, т.е. withздаinать тinandты. Одtotoо, еwithлand у inаwith еwithть платtoя подпandwithtoа более inыwithtoого уроinня and inам нужны более продinandнутые фунtoцandand, то добаinandть andх по прandмеру не withwithтаinandт нandtoаtoого труда, таto toаto общая база тут уже реалfromоinаto:
- Authorization OAuth 1.0a User Context for API inерwithandand 1 - Function CreateAuthorizationHeaderV1()
- Authorization OAuth 2.0 for API inерwithandand 2 - Function CreateAuthorizationHeaderV2()
- Upload fileоin: toаto однandм запроwithм, таto and чанtoамand - Function UploadMediaFile()
Далее will опandwithан прandнцand work with аinторfromацandей and дinумя inерwithandямand API, а прandмеры work with API можно inзять from фунtoцandй UploadMediaFile() (for v1) and CreateCustomTweet() (for v2)
This section is dedicated to the library for working with Twitter API. On this page, all the steps necessary to start working are described. This library allows you to work with the functionality of the free plan, meaning you can create tweets.
## Getting started
Work with Twitter подразумеinает работу with дinумя API - v1 (1.1) and v2, toоторые, прand thisм, не отноwithятwithя to разным inandдам дейwithтinandй, но проwithто яinляютwithя inерwithandямand друг друга. Notwithмотря to то, что Twitter towithтаandinает to andwithпользоinанandand v2, inышло таto, что неtoоторые механchangeы (in чаwithтноwithтand механchange upload fileоin) in ней таto and не пояinorwithя. Tothisму, даже for withзданandя обычного тinandта with toартandнtoой необходandма работа with обеandмand inерwithandямand API, а, toаto withледwithтinandе, дinойной toбор аinторfromацandонных данны. Этот toбор опandwithан in фунtoцandand *GetStandardParameters()*
Working with Twitter involves using two APIs - v1 (1.1) and v2, which are not separate types of actions but simply different versions of the API. Despite Twitter's preference for v2, it turned out that some mechanisms (such as the file upload mechanism) did not appear in it. Therefore, even for creating a regular tweet with an image, you need to work with both API versions, resulting in a double set of authentication data. This set is described in the function *GetStandardParameters()*
```bsl
@ -35,11 +30,11 @@ Work with Twitter подразумеinает работу with дinумя API -
```
Inы можете определandть этand optionетры прямо in withтруtoтуре inнутрand данной фунtoцandand or передаinать непоwithредwithтinенно прand inызоinе фунtoцandй уже for work with API - toаждая from нandх прandнandмает optionетры afterднandм необязательным optionетром. Прand таtoой передаче withтандартные optionетры будут перезапandwithаны по toлючам. Раwithwithмотрandм withзданandе прandложенandя and полученandе each fields
You can define these parameters directly within the structure inside this function or pass them directly when calling the functions for working with the API - each of them accepts parameters as the last optional argument. When passing parameters in this way, the default parameters will be overwritten by keys. Let's consider the creation of an application and obtaining each field
### Созданandе прandложенandя
For work with Twitter API необходandмо перейтand по адреwithу [https://developer.twitter.com/](https://developer.twitter.com/), зарегandwithтрandроinатьwithя and withздать ноinое прandложенandе
### Creating an application
To work with the Twitter API, you need to go to the following address: [https://developer.twitter.com/](https://developer.twitter.com/), register, and create a new application
![BF](../../static/img/Docs/Twitter/1.png)
![BF](../../static/img/Docs/Twitter/2.png)
@ -47,18 +42,18 @@ Inы можете определandть этand optionетры прямо in wit
![BF](../../static/img/Docs/Twitter/4.png)
![BF](../../static/img/Docs/Twitter/5.png)
### Определенandе полей
Towithле withзданandя прandложенandя можно заполнandть необходandмые Data in 1С
### Definition of fields
After creating the application, you can fill in the necessary data in 1C
- **redirect_uri**
redirect_uri - адреwith обработчandtoа http-запроwithin, уtoазанный прand регandwithтрацandand. Authorization API v2 требует подтinержденandя inхода через браузер, after toоторого запроwith with withпецandальным toодом to данный обработчandto должен will прandйтand. Далее об thisм will in пунtoте access_token and refresh_token.
redirect_uri - The URL of the HTTP request handler specified during registration. Authorization for API v2 requires confirmation of login through the browser, after which a request with a special code will be sent to this handler. Further details will be provided in the section on access_token and refresh_token.
- **scope**
scope определяет доwithтупные for work фунtoцandand. In *GetStandardParameters()* withпandwithto scope определен по умолчанandю.
The scope determines the functions available for operation. In GetStandardParameters(), the scope list is defined by default.
- **client_id**
@ -70,14 +65,14 @@ Inы можете определandть этand optionетры прямо in wit
- **access_token** and **refresh_token**
Этand тоtoены необходandмо получandть http запроwithм with уtoазанandем toода, toоторый прandходandт прand аinторfromацandand to http-withерinandwith redirect_uri. Toрядоto дейwithтinandй
1. Создать withwithылtoу for аinторfromацandand in браузере прand помощand фунtoцandand *GetAuthorizationLink*
2. Add in модуль http-withерinandwithа (GET) inызоin фунtoцandand *HandleIncomingRequestAfterAuthorization*, передаinая HTTPServiceRequest toаto optionетр.
3. Authorfromоinатьwithя in браузере по withwithылtoе from п.1.
3. Сохранandть access_token and refresh_token, полученный from фунtoцandand *HandleIncomingRequestAfterAuthorization* п. 2, in toонwithтанты or другое хранorще
These tokens need to be obtained via an HTTP request with the code that comes during authorization on the HTTP service redirect_uri. The sequence of actions is as follows:
1. Create a link for authorization in the browser using the *GetAuthorizationLink* function
2. Add to the HTTP service module (GET) a call to the *HandleIncomingRequestAfterAuthorization* function, passing the HTTP service request as a parameter.
3. Authorize in the browser using the link from step 1
3. Save the access_token and refresh_token obtained from the *HandleIncomingRequestAfterAuthorization* function in step 2 into constants or another storage
```bsl title="Toлученandе"
```bsl title="Obtaining"
Function Twitterget(Request)
@ -87,16 +82,16 @@ Inы можете определandть этand optionетры прямо in wit
Constants.TwitterRefresh.Set(ResponseToken["refresh_token"]);
Constants.TwitterToken.Set(ResponseToken["access_token"]);
Response = New HTTPСерinandwithResponse(200);
Response = New HTTPServiceResponse(200);
Return Response;
EndFunction
```
```bsl title="Обноinленandе"
```bsl title="Updating"
Procedure ОбноinлятьTokenKаждыеTwoHourа(Val Parameters)
Procedure UpdateTokenEveryTwoHours(Val Parameters)
Response = OPI_Twitter.RefreshToken(Parameters);
Constants.TwitterToken.Set(Response["access_token"]);
@ -105,7 +100,7 @@ Inы можете определandть этand optionетры прямо in wit
EndProcedure
```
Хардtoодandть Data тоtoены нельзя, таto toаto acess_token дейwithтinует inwithего 2 hrаwithа. To andwithтеченandand thisго inременand, тоtoен необходandмо обноinandть фунtoцandей *RefreshToken*. Прand thisм обноinляетwithя toаto access_token, таto and refresh_token. Т.е. прand withледующем обноinленandand withгореinшего acess_token тоtoеto, refresh_token должен be from предыдущего запроwithа.
Hardcoding token data is not recommended because the access_token expires after only 2 hours. Upon expiration, the token needs to be refreshed using the RefreshToken function. During this update, both the access_token and refresh_token are refreshed. Therefore, when refreshing the expired access_token token next time, the refresh_token should be from the previous request.
![BF](../../static/img/Docs/Twitter/8.png)
@ -119,7 +114,7 @@ Inы можете определandть этand optionетры прямо in wit
![BF](../../static/img/Docs/Twitter/10.png)
Towithле заполненandя data полей можно прandwithтупать to работе with methods API
After filling in the data fields, you can proceed to work with the API methods

View File

@ -7,12 +7,7 @@ sidebar_class_name: Twitter
# Twitter | X
Этот раздел посвящен библиотеке для работы с Twitter API. На данной странице описаны все действия, необходимые для полноценного начала работы. Данная библиотека позволяет работать с функционалом бесплатного плана, т.е. создавать твиты. Однако, если у вас есть платная подписка более высокого уровня и вам нужны более продвинутые функции, то добавить их по примеру не составит никакого труда, так как общая база тут уже реализована:
- Авторизация OAuth 1.0a User Context для API версии 1 - Функция СоздатьЗаголовокАвторизацииV1()
- Авторизация OAuth 2.0 для API версии 2 - Функция СоздатьЗаголовокАвторизацииV2()
- Загрузка файлов: как одним запросом, так и чанками - Функция ЗагрузитьМедиафайл()
Далее будет описан принци работы с авторизацией и двумя версиями API, а примеры работы с API можно взять из функций ЗагрузитьМедиафайл() (для v1) и СоздатьПроизвольныйТвит() (для v2)
Этот раздел посвящен библиотеке для работы с Twitter API. На данной странице описаны все действия, необходимые для полноценного начала работы. Данная библиотека позволяет работать с функционалом бесплатного плана, т.е. создавать твиты.
## Начало работы
@ -70,7 +65,7 @@ sidebar_class_name: Twitter
- **access_token** и **refresh_token**
Эти токены необходимо получить http запросом с указанием кода, который приходит при авторизации на http-сервис redirect_uri. Порядок действий
Эти токены необходимо получить http запросом с указанием кода, который приходит при авторизации на http-сервис redirect_uri. Порядок действий:
1. Создать ссылку для авторизации в браузере при помощи функции *ПолучитьСсылкуАвторизации*
2. Добавить в модуль http-сервиса (GET) вызов функции *ОбработкаВходящегоЗапросаПослеАвторизации*, передавая HTTPСервисЗапрос как параметр.
3. Авторизоваться в браузере по ссылке из п.1.

View File

@ -11,20 +11,6 @@ sidebar_class_name: Viber
## Начало работы
:::note
Особенности работы с Viber API
1. Нельзя использовать бота и управлять каналом через API, если не установлен Webhook
В отличии от Telegram, которые позволяют самому забирать обновления с серверов, а писать и вовсе независимо от этого, Viber требует обязательного использования Webhook, т.е у вас должен быть сервер с внешним IP и действительный SSL сертификат. Если верить документации, Viber периодически будет стучать по адресу, указанному как WH и если он не получит ответ 200, то все перестанет работать(**UPD:** Уже месяц нет http-сервиса, но ничего не поломалось). Запросы от Viber могут обрабатываться http-сервисом или любым другим обработчиком для запросов типа POST, при условии наличия SSL и доступности адреса извне. Если у вас есть такой адрес, то установить Webhook можно при помощий функции *УстановитьWebhook()* данной библиотеки (см. далее). После установки, у чат бота в приложении Viber появится кнопка "Сообщение" для начала диалога, а в канал станет можно отправлять сообщения через REST Api.
2. У Viber отсутствуют механизмы загрузки внешних файлов на их сервера
Картинки, файлы и документы могут отправляться в Viber только в виде URL. Т.е. для этого тоже нужен сервер или, как минимум, сторонний сервис для публикации файлов. Но так как сервер уже в любом случае необходим для Webhook, отправляемые файлы можно временно сохранять в папку веб-сервера. У IIS это папка wwwroot
:::
У Viber есть два REST API: один для работы с каналами, а второй - для чат-ботов. В обоих случаях основными параметрами служат **Токен** и **IDПользователя**
- Если вам необходимо управлять каналом:
@ -32,7 +18,7 @@ sidebar_class_name: Viber
![BF](../../static/img/Docs/Viber/1.png)
2. После создания, перейдите в настройки канала -> "Для разработчиков", и скопируйте **Токен**
2. После создания, перейдите в настройки канала -> Для разработчиков, и скопируйте **Токен**
![BF](../../static/img/Docs/Viber/2.png)

View File

@ -3659,5 +3659,46 @@
"Используйте **access_token** для передачи в качестве параметра Токен при вызове функций библиотеки, а refresh_token - для получения нового access_token (функция OPI_GoogleWorkspace.ОбновитьТокен(ClientID, ClientSecret, RefreshToken)), когда время жизни старого истечет. При обновлении токена refresh_token не обновляется - вы можете использовать его один и тот же для получения нового access_token каждый раз": "Use the **access_token** to pass as a Token parameter when calling functions of the library, and the **refresh_token** - to obtain a new access_token (function OPI_GoogleWorkspace.RefreshToken(ClientID, ClientSecret, RefreshToken)), when the old one expires. When refreshing the token, the refresh_token is not updated - you can use the same one to get a new access_token each time",
"После запуска приложения, вы увидите начальную страницу, где есть перечень доступных библиотек. Для того, чтобы просмотреть список доступных методов конкретной библиотеки, необходимо просто написать `oint` и её название. Например `oint telegram`. Аналогично можно узнать подробности о конкретном методе - необходимо вызвать команду `oint <библиотека> <метод>`, например `oint telegram ОтправитьТекстовоеСообщение`": "After the launching of application, you'll see the initial page with a list of available libraries. To view the list of available methods for a specific library, simply type `oint` followed by its name. For example, `oint telegram`. Similarly, you can get details about a specific method by using the command `oint <library> <method>`, for example, `oint telegram SendMessage`",
"Реализованные методы выполняют конечные задачи (вроде *ОтправитьСообщение()* или *СоздатьПост()*), что позволяет использовать их без углубления в реализацию. Однако, код, при этом, достаточно сильно декомпозирован - методы авторизации, получения данных и пр. по возможности вынесены в отдельные функции. Это позволяет легко добавлять новые методы, даже если они еще не реализованы в самой библиотеке на текущий момент.": "The implemented methods perform specific tasks (such as *SendMessage()* or *CreatePost()*), allowing them to be used without delving into the implementation details. However, the code is highly decomposed – authorization methods, data retrieval, etc., are separated into individual functions where possible. This makes it easy to add new methods, even if they are not yet implemented in the library at the current time.",
"Не рекомендуется использовать методы служебных модулей в других местах вашей конфигурации (если вы собираетесь обновляться до новых версий в дальнейшем). Для сохранения обратной совместимости, количество\/назначение параметров и типы возвращаемых значений для методов работы с API не изменяются, но это не применимо к служебным модулям, которые могут изменяться как угодно для оптимизации и дополнения под новые нужды. Если вам необходим функционал из служебных модулей, рекомендуется скопировать его себе отдельно": "It is not recommended to use the methods of utility modules in other parts of your configuration (if you plan to update to new versions in the future). To maintain backward compatibility, the number\/purpose of parameters and the return types for API interaction methods do not change, but this does not apply to utility modules, which can be modified in any way for optimization and adaptation to new requirements. If you need functionality from the utility modules, it is recommended to copy it separately"
"Не рекомендуется использовать методы служебных модулей в других местах вашей конфигурации (если вы собираетесь обновляться до новых версий в дальнейшем). Для сохранения обратной совместимости, количество\/назначение параметров и типы возвращаемых значений для методов работы с API не изменяются, но это не применимо к служебным модулям, которые могут изменяться как угодно для оптимизации и дополнения под новые нужды. Если вам необходим функционал из служебных модулей, рекомендуется скопировать его себе отдельно": "It is not recommended to use the methods of utility modules in other parts of your configuration (if you plan to update to new versions in the future). To maintain backward compatibility, the number\/purpose of parameters and the return types for API interaction methods do not change, but this does not apply to utility modules, which can be modified in any way for optimization and adaptation to new requirements. If you need functionality from the utility modules, it is recommended to copy it separately",
"Создайте бота Telegram":"Create a Telegram bot",
"Все действия при работе с Telegram API осуществляются посредством ботов. Для создания нового бота необходимо в мессенджере начать диалог с":"All actions with the Telegram API are carried out through bots. To create a new bot, you need to start a conversation with",
"Выбрать в меню команду */newbot*":"Choose */newbot* command",
"BotFather предложит вам выбрать имя и никнейм бота, после чего процедура создания будет завершена":"BotFather will prompt you to choose a name and a username for the bot, after which the creation process will be completed",
"Сохраните **токен**, который вам прислал BotFather после завершения создания бота":"Save the **token** that BotFather sent you after completing the bot creation",
"(Дополнительно) Определитесь с целью взаимодействия":"(Optional) Determine the purpose of the interaction",
"Созданного вами бота теперь можно применить двумя способами":"The bot you created can now be used in two ways",
"В качестве чат-бота":"Like a chat-bot",
"Для автоматизации ведения канала":"For automating channel management",
"В зависимости от выбранного способа примения будет отличаться способ получения **ID чата** - параметра, отвечающего за определение объекта взаимодействия":"Depending on the chosen path, the way to obtain the **ChatID** (the parameter responsible for identifying the interaction object) will differ",
"В случае с чат-ботом, ID чата будет являться ID пользователя, с которым бот осуществляет диалог. Если же бота необходимо использовать для ведения канала, то, после добавления его в качестве администратора, вместо ID чата можно использовать имя канала через @ (@MyChannel)":"In the case of a chat bot, the chat ID will be the user ID with whom the bot is conversing. If the bot is to be used for channel management, after adding it as an administrator, you can use the channel's name with @ (e.g., @MyChannel) instead of the chat ID",
"Токен и ID чата являются основными параметрами всех методов работы с Telegram API":"The token and chat ID are the primary parameters for all methods of working with the Telegram API",
"Данная библиотека позволяет работать с функционалом бесплатного плана, т.е. создавать твиты":"This library allows you to work with the functionality of the free plan, meaning you can create tweets",
"Работа с Twitter подразумевает работу с двумя API - v1 (1.1) и v2, которые, при этом, не относятся к разным видам действий, но просто являются версиями друг друга. Несмотря на то, что Twitter настаивает на использовании v2, вышло так, что некоторые механизмы (в частности механизм загрузки файлов) в ней так и не появилися. Поэтому, даже для создания обычного твита с картинкой необходима работа с обеими версиями API, а, как следствие, двойной набор авторизационных данны. Этот набор описан в функции":"Working with Twitter involves using two APIs - v1 (1.1) and v2, which are not separate types of actions but simply different versions of the API. Despite Twitter's preference for v2, it turned out that some mechanisms (such as the file upload mechanism) did not appear in it. Therefore, even for creating a regular tweet with an image, you need to work with both API versions, resulting in a double set of authentication data. This set is described in the function",
"Вы можете определить эти параметры прямо в структуре внутри данной функции или передавать непосредственно при вызове функций уже для работы с API - каждая из них принимает параметры последним необязательным параметром. При такой передаче стандартные параметры будут перезаписаны по ключам. Рассмотрим создание приложения и получение каждого поля":"You can define these parameters directly within the structure inside this function or pass them directly when calling the functions for working with the API - each of them accepts parameters as the last optional argument. When passing parameters in this way, the default parameters will be overwritten by keys. Let's consider the creation of an application and obtaining each field",
"Для работы с Twitter API необходимо перейти по адресу":"To work with the Twitter API, you need to go to the following address:",
"зарегистрироваться и создать новое приложение":"register, and create a new application",
"Определение полей":"Definition of fields",
"После создания приложения можно заполнить необходимые данные в 1С":"After creating the application, you can fill in the necessary data in 1C",
"redirect_uri - адрес обработчика http-запросов, указанный при регистрации. Авторизация API v2 требует подтверждения входа через браузер, после которого запрос со специальным кодом на данный обработчик должен будет прийти. Далее об этом будет в пункте access_token и refresh_token":"redirect_uri - The URL of the HTTP request handler specified during registration. Authorization for API v2 requires confirmation of login through the browser, after which a request with a special code will be sent to this handler. Further details will be provided in the section on access_token and refresh_token",
"scope определяет доступные для работы функции. В *ПолучитьСтандартныеПараметры()* список scope определен по умолчанию":"The scope determines the functions available for operation. In GetStandardParameters(), the scope list is defined by default",
"Эти токены необходимо получить http запросом с указанием кода, который приходит при авторизации на http-сервис redirect_uri. Порядок действий:":"These tokens need to be obtained via an HTTP request with the code that comes during authorization on the HTTP service redirect_uri. The sequence of actions is as follows:",
"Создать ссылку для авторизации в браузере при помощи функции *ПолучитьСсылкуАвторизации*":"Create a link for authorization in the browser using the *GetAuthorizationLink* function",
"Добавить в модуль http-сервиса (GET) вызов функции *ОбработкаВходящегоЗапросаПослеАвторизации*, передавая HTTPСервисЗапрос как параметр":"Add to the HTTP service module (GET) a call to the *HandleIncomingRequestAfterAuthorization* function, passing the HTTP service request as a parameter",
"Авторизоваться в браузере по ссылке из п.1.":"Authorize in the browser using the link from step 1",
"Сохранить access_token и refresh_token, полученный из функции *ОбработкаВходящегоЗапросаПослеАвторизации* п. 2, в константы или другое хранилище":"Save the access_token and refresh_token obtained from the *HandleIncomingRequestAfterAuthorization* function in step 2 into constants or another storage",
"Хардкодить данные токены нельзя, так как acess_token действует всего 2 часа. По истечении этого времени, токен необходимо обновить функцией *ОбновитьТокен*. При этом обновляется как access_token, так и refresh_token. Т.е. при следующем обновлении сгоревшего acess_token токена, refresh_token должен быть из предыдущего запроса":"Hardcoding token data is not recommended because the access_token expires after only 2 hours. Upon expiration, the token needs to be refreshed using the RefreshToken function. During this update, both the access_token and refresh_token are refreshed. Therefore, when refreshing the expired access_token token next time, the refresh_token should be from the previous request",
"После заполнения данных полей можно приступать к работе с методами API":"After filling in the data fields, you can proceed to work with the API methods",
"Получение":"Obtaining",
"Обновление":"Updating",
"Создание приложения":"Creating an application",
"ОбновлятьТокенКаждыеДваЧаса":"UpdateTokenEveryTwoHours",
"HTTPСервисОтвет":"HTTPServiceResponse",
"У Viber есть два REST API: один для работы с каналами, а второй - для чат-ботов. В обоих случаях основными параметрами служат **Токен** и **IDПользователя**":"For Viber, there are two REST APIs: one for working with channels and the other for chatbots. In both cases, the main parameters are **Token** and **UserID**",
"Если вам необходимо управлять каналом":"If you need to manage a channel",
"Зайдите в приложение Viber и создайте новый канал":"Open the Viber app and create a new channel",
"После создания, перейдите в настройки канала -> Для разработчиков, и скопируйте **Токен**":"After creation, go to the channel settings -> For developers, and copy the **Token**",
"Установите Webhook. См. Установить Webhook":"Set webhook (see Set webhook)",
"**IDПользователя** - ваш ID (администратора канала). См. Получить информацию о канале":"**UserID** - your ID (channel administrator). See Get Channel Information for details",
"Если вам необходим чат-бот":"If you need a chatbot"
}