Go to the Twilio site and get register yourself. https://www.twilio.com/
3. Once your email id gets verified, you need to add and verify your mobile number. (You will receive the OTP)
5. Twilio provides a virtual mobile number to send the SMS for the free account. You need to click on the (Get Virtual Phone Number) button.
Account SID is a security identifier.
Account Token used to access the API
# install the virtual environment
>>> pip3 install -U virtualenv
>>> mkdir python-twilio-sender
>>> cd python-twilio-sender
>>> virtualenv venv
# activate the virtual environment
>>> source venv/bin/activate
(venv) prompt$
https://www.twilio.com/docs/libraries/python#install-the-library
>>> pip3 install twilio
from twilio.rest import Client
# Your Account SID from twilio.com/console
account_sid = "<account_sid>"
# Your Auth Token from twilio.com/console
auth_token = "your_auth_token"
client = Client(account_sid, auth_token)
message = client.messages.create(
to="+15558675309",
from_="+15017250604",
body="Hello from Python!")
print(message.sid)