Skip to content

Instantly share code, notes, and snippets.

@mlhamel
Created May 29, 2019 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlhamel/a7e441aa6dca231d93827ec6bc6a0ada to your computer and use it in GitHub Desktop.
Save mlhamel/a7e441aa6dca231d93827ec6bc6a0ada to your computer and use it in GitHub Desktop.
# 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