Plivo Python Helper Library
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs Added documentation for xml classes May 9, 2013
.gitignore Added endpoint specific classes on the RestAPI object. Started writin… Apr 30, 2013
.travis.yml Use python 2.7 Apr 24, 2013
Changelog updating version + changelog Nov 2, 2016
LICENSE Licence Apr 20, 2012
README.md Tests need to be changed. This will cause false Jun 24, 2013
plivo.py Reverting back method name change (#29) Nov 2, 2016
plivoxml.py
requirements.txt Fixing requirements.txt Oct 28, 2016
setup.py updating version + changelog Nov 2, 2016
tests.py Reverting back method name change (#29) Nov 2, 2016

README.md

Plivo Python Helper

Example code to make a call

#!/usr/bin/env python

import plivo

auth_id = 'XXXXXXXXXXXXXXXXXXXX'
auth_token = 'XXXXXXXXXXXXXXXXXXXXXXXXX'

p = plivo.RestAPI(auth_id, auth_token)

params = {'to': '121212121212',
'from': '1212121212',
'ring_url': 'http://example.com/ring_url'
'answer_url': 'http://example.com/answer_url',
'hangup_url': 'http://example.com/hangup_url'
}

response = p.make_call(params)

Running Tests

Create a file named auth_secrets.py and give it your AUTH_ID and AUTH_TOKEN. Run python tests.py

Installation

pip install plivo

Building docs

cd docs
make html

(You should have sphinx installed.)