Commit 5446e64a authored by Kulya's avatar Kulya 😊

Update README.md

parent 6ac255a1
Pipeline #287 canceled with stages
......@@ -2,6 +2,12 @@
На данный момент работают следующие методы взаимодействия по RestAPI:
### Авторизация
Все методы проходят авторизация по методы `Authorization: Bearer token` в хедере каждого метода
---
## Создать автообзвон
##### Метод `POST`
......@@ -57,7 +63,6 @@ curl --location --request POST 'https://cld.alovoice.uz/mapi/addAutorule' \
--form 'timezone="utc +5"'
```
---
##### Пример ответа сервера
```json
......@@ -82,8 +87,6 @@ curl --location --request POST 'https://cld.alovoice.uz/mapi/addAutorule' \
}
```
---
---
## Получить автообзвон
......@@ -102,8 +105,6 @@ curl --location --request GET 'https://cld.alovoice.uz/mapi/getAutorule/40' \
--header 'Authorization: Bearer 22dfbb22-d073-4422-b322-22949d14a022' \
```
---
#### Пример ответа сервера
```json
{
......@@ -127,3 +128,29 @@ curl --location --request GET 'https://cld.alovoice.uz/mapi/getAutorule/40' \
}
```
---
## Получить доступные линии (trunks)
#### Метод `GET`
```
https://cld.alovoice.uz/mapi/getTrunks
```
#### Параметры `multipart/form-data`
`id` - индентификатор сохранённого прежде на сервере автообзвона
#### Пример вызова на cURL
```
curl --location --request GET 'https://cld.alovoice.uz/mapi/getTrunks' \
--header 'Authorization: Bearer 22dfbb22-d073-4422-b322-22949d14a022' \
```
#### Пример ответа сервера
```json
["551234567","712345678"]
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment