![]() This can be found in your Twilio console. ![]() Create an app on Sinch and get the key and secret of the app and use these credentials in the following script to send SMS to your mobile. Step through the account creation process to get your account token and phone number. Run the following command and paste your Account SID to export it as an environment variable named TWILIO_ACCOUNT_SID. If you are running any python script and want to send regular updates from your script to your mobile phone through SMS, you can use SinchSMS API to send SMS. I am writing software using the Twilio API, Flask, and Python to send and receive SMS messages. We now need to set environment variables to export our Twilio credentials that will allow the Python script to access our Twilio account and use the API.Ĭopy the Account SID and open your terminal. The Account SID is a unique identifier for your account while the Auth Token is a secret key that should never be shared or else anyone will have full access to your Twilio account. ![]() Next, log into your existing Twilio account or sign up for a new free Twilio account.Īfter you log into the Twilio Console, take note of your Account SID and Auth Token. If you do not have Python already installed on your machine, go to the Python downloads page and install the latest version now.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |