Skip to content

zironuk/ziron-scripts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ziron API scripts

MIT licensed

A selection of scripts for working with the Ziron developer API. Written in Python 3 using Pandas for data analysis.

Ziron are a voice and messaging provider, based in the UK offering SIP termination / trunk services. I am not affiliated with them, I'm just a customer.

These were developed due to the functionality being missing in their dashboard, but the data was easily accessible via their API - I hope these are handy for other customers.

Scripts

summary.py

  • Lists all assigned numbers
  • Highlights numbers which do not have emergency addresses accepted yet
  • Monthly summary of calls / charges / duration
  • Inbound calls grouped by destination
  • Outbound calls grouped by source
  • Outbound calls split by rate destination (UK National / UK Mobile etc)
  • Call counts, charges and duration grouped by our assigned numbers
  • Rate destination summaries for our assigned numbers
  • Dog leg call summary (our numbers which went in/out via Ziron instead of the PBX)

still to do

  • UK available number search
  • UK available number purchase
  • UK number "gold" analysis

Usage

Setup your Python3 environment and set variable for your Ziron account SID and auth token (found on the front page of the dashboard).

virtualenv venv -p python3
source venv/bin/activate
pip3 install -r requirements.txt
export ZIRON_ACCOUNT_SID=ACxxxxxxxxxxxxxxx
export ZIRON_AUTH_TOKEN=xxxxxxxxxxxxxxxxx

Run a script:

./summary.py

License

MIT

Contributing guidelines

  • Fork the repo
  • Create a branch
  • Make your changes
  • Open a pull request back from your branch to master in this repo

Found a bug? open an issue.

About

Selection of scripts for working with the Ziron API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%