import os from twilio.rest import Client account_sid = os.environ['ACbXXXX'] auth_token = os.environ['aa343XXXX'] client = Client(account_sid, auth_token) message = client.messages.create( body='pozar!', from_='+14692057051', status_callback='http://postb.in/1234abcd', to='+41XXXXX' ) print(message.sid)