Authy API Client
Archived. The repository is read-only: no more fixes or releases will come.
pip install authyPython Client for Twilio Authy Two-Factor Authentication (2FA) API
Documentation for Python usage of the Authy API lives in the official Twilio documentation.
The Authy API supports multiple channels of 2FA:
- One-time passwords via SMS and voice.
- Soft token (TOTP via the Authy App)
- Push authentication via the Authy App
If you only need SMS and Voice support for one-time passwords, we recommend using the Twilio Verify API instead.
More on how to choose between Authy and Verify here.
Authy Quickstart
For a full tutorial, check out either of the Python Authy Quickstarts in our docs:
Authy Python Installation
Install with pip:
$ pip install authy
OR
Download the source code and run the following command from your terminal:
$ python setup.py install
Note that you may need admin permissions to run the above commands.
Usage
To use the Authy client, import AuthyApiClient and initialize it with your production API Key found in the Twilio Console:
from authy.api import AuthyApiClient
authy_api = AuthyApiClient('your_api_key')
