Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CldAloVoiceDocs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
CldAloVoiceDocs
Commits
5446e64a
Commit
5446e64a
authored
Apr 25, 2025
by
Kulya
😊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
6ac255a1
Pipeline
#287
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
5 deletions
+32
-5
README.md
README.md
+32
-5
No files found.
README.md
View file @
5446e64a
...
...
@@ -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"
]
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment