Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bzdvdn/sipuni-api-wrapper
Api wrapper at python for Sipuni telephony
https://github.com/bzdvdn/sipuni-api-wrapper
api-client python3 sipuni
Last synced: 6 days ago
JSON representation
Api wrapper at python for Sipuni telephony
- Host: GitHub
- URL: https://github.com/bzdvdn/sipuni-api-wrapper
- Owner: bzdvdn
- Created: 2019-12-05T13:47:03.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-04T13:36:52.000Z (about 1 year ago)
- Last Synced: 2024-12-15T16:55:13.200Z (20 days ago)
- Topics: api-client, python3, sipuni
- Language: Python
- Size: 3.91 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sipuni api client
## Installation
Install using `pip`...
pip install sipuni-api
### Usage
```python
from sipuni_api import Sipuni
client = Sipuni('', '')
```
#### Make calls
* Documentation
```python
# create simple call
client.make_call(phone='79379992', sipnumber='201')# create call tree
client.make_tree_call(phone='79379992', sipnumber='201', tree='000658610')# create call external
client.make_external_call(from_phone='79379992', to_phone='79379993', first_sipnumber='201', second_sipnumber='204')
`````
#### Make voice call
* Documentation
```python
client.make_voice_call(phone='79379992', sipnumber='201', message='test 123', voice_type='Vladimir')
```#### Hangup call
* Documentation
```python
client.hangup_call(call_id='123456789.123')
```
#### Statistic
* Documentation
```python
# call statistic
from datetime import datetime, timedelta
client.get_call_stats(from_date=(datetime.now() - timedelta(days=1)), to_date=datetime.now()) # return csv data# get call record
client.get_record('') # return bytes# get list of managers
client.get_managers()
```### TODO
* examples
* tests### License
MIT