The twilio Package
Last updated
Was this helpful?
Last updated
Was this helpful?
The twilio
package provides some useful programmatic SMS and voice message capabilities via the .
Reference:
Install twilio
, if necessary:
For SMS capabilities, , click the link in a confirmation email to verify your account, then confirm a code sent to your phone to enable 2FA.
Then with "Programmable SMS" capabilities. And from the console, view that project's Account SID and Auth Token. Update the contents of the ".env" file to specify these values as called TWILIO_ACCOUNT_SID
and TWILIO_AUTH_TOKEN
, respectively.
You'll also need to to send the messages from. After doing so, update the contents of to specify this value (including the plus sign at the beginning) as an environment variable called SENDER_SMS
.
Finally, set an environment variable called RECIPIENT_SMS
to specify the recipient's phone number (including the plus sign at the beginning).
Send yourself an SMS: