Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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