Skip to content

Instantly share code, notes, and snippets.

@mlhamel mlhamel/fax.py
Created May 29, 2019

Embed
What would you like to do?
# 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
You can’t perform that action at this time.