Created
May 29, 2019 16:04
-
-
Save mlhamel/a7e441aa6dca231d93827ec6bc6a0ada to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download the helper library from https://www.twilio.com/docs/python/install | |
from twilio.rest import Client | |
# Your Account Sid and Auth Token from twilio.com/console | |
account_sid = '' | |
auth_token = '' | |
client = Client(account_sid, auth_token) | |
fax = client.fax.faxes \ | |
.create( | |
from_='phone_number', | |
to='phone_number', | |
media_url='public_url_of_the_pdf_to_attach' | |
) | |
print(fax.sid) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment