Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

Python client for Phaxio v2 API

Project Description

Phaxio

A Python module for interacting with the Phaxio API.

Installation

Via pip:

$ pip install phaxio

Usage

Send a fax to multiple people using HTML message:

from phaxio import PhaxioApi

api = PhaxioApi(key, secret)
response = api.Fax.send(to=['4141234567', '5141234567', '6151234567'],
    files='/path/to/supported/file.pdf')
print(response.data.id)

The full set of Phaxio APIs is available and split into functional groups:

api.Fax

api.PhoneNumber

api.PhaxCode

api.Account

api.Countries

Generally, each supported method takes keyword arguments with the exact same names of the API method parameters as they’re described in the Phaxio documentation.

See the tests for additional examples, or the full documentation.

Error Handling

Errors will cause an ApiException, with fields for HTTP status code, reponse headers, and json response data in the body.

Testing

export API_KEY="MY_API_KEY"
export API_SECRET="MY_API_SECRET"
python setup.py test

Contributing

Making API changes

  1. Make changes to spec/api.yaml
  2. Run make swagger-generate
  3. Make changes to phaxio/api.py as necessary
  4. Update documentation if necessary
  • docs/source/phaxio.rst will probably not require updates unless it’s a very big change
  • docs/source/models.rst will require updates only if there are new model types
Release History

Release History

This version
History Node

0.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
phaxio-0.2.tar.gz (32.2 kB) Copy SHA256 Checksum SHA256 Source Jan 13, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting