Modern Python client library for the Sipsentric (Simwood Partner, formerly Nimvelo) API
Project description
Simwood Partner Python Client
A modern Python client library for Sipcentric (Simwood Partner, formerly Nimvelo) API.
from sipcentric import Sipcentric
api = Sipcentric(username="myusername", password="mypassword")
print api.sms.post(_from="0123", to="03301201200", body="Hello World!")
Install
Best method
sudo pip install sipcentric
You may need to install simplejson if you don't have it already.
Manual method
git clone git@github.com:faelix/sipcentric.git && cd sipcentric
sudo python setup.py install
Getting started
Examples
Get account details
from sipcentric import Sipcentric
api = Sipcentric(username="myusername", password="mypassword")
print api.account.get()
Connect to the streaming api
from sipcentric import Sipcentric
api = Sipcentric(username="myusername", password="mypassword")
stream = api.Stream
def callHandler(call):
print 'Incoming call from ' + call['callerIdName'] + ' (' + call['callerIdNumber'] + ')'
def smsHandler(sms):
print sms['excerpt'] + ' from: ' + sms['from']
stream.register(type='incomingcall', callback=callHandler)
stream.register(type='smsreceived', callback=smsHandler)
stream.connect()
Reference
- sipcentric.Sipcentric(username, password, base='https://pbx.sipcentric.com/api/v1', customer='me')
- account
- get()
- callBundles
- get()
- recordings
- get()
- phoneBook
- get()
- timeIntervals
- get()
- endpoints
- get()
- phoneNumbers
- get()
- sms
- get()
- post(to, _from, body)
- creditStatus
- get()
- calls
- get()
- sounds
- get()
- outgoingCallerIds
- get()
- Stream
- register(type, callback)
- connect()
- disconnect()
- account
History
This project was forked from Nimvelo's original project (for Python 2.7)
python-client. The name was
changed to sipcentric after discussion with the development team at Simwood.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sipcentric-0.0.0.tar.gz.
File metadata
- Download URL: sipcentric-0.0.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b2e9b9d25248f54c7b0d19addefd41789bc9b470e359179c5468b99892392c6
|
|
| MD5 |
ce43021fbacb9dbbb52521cc4cf7b5de
|
|
| BLAKE2b-256 |
3c76c432f254795daf9c8ae100f789e406074aa9540c84d5468dc0cd75b8deb0
|
File details
Details for the file sipcentric-0.0.0-py3-none-any.whl.
File metadata
- Download URL: sipcentric-0.0.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccf42dbe4375f6dcf3a030091ffc0860eaadf92979e0967729deeccc17d0f191
|
|
| MD5 |
6de689b0ec34f44ef9bfd8b92af344bc
|
|
| BLAKE2b-256 |
adc0e20e1afba9fcf2ff4410cc3c4e2a0aa99ab293f570df3bee87b2c6a0024a
|