Twilio

A mailer, member database, and so much more, for digital activism.

Twilio

To use text blasting and receive messages from members via SMS using Twilio, follow these instructions

  1. Set up a Twilio account, and upgrade to a fully paid account.

  2. Buy a phone number(make sure it is SMS enabled).

  3. Configure an identity API token with permission to access the twilio webhook endpoint by executing this code in a rails console. Copy the token for use in the next step. APIUser.create_with_permission!('twilio_webhook', name: 'twilio', active: true).token

  4. Configure the phone number under the “Messaging” section to make an HTTP POST request to https://{ your deployment }/twilio/api/inbound_sms?api_token=YOUR_API_TOKEN_HERE

  5. Get your API keys from Twilio on the main dashboard under Settings, General, scroll down to API Credentials.

  6. Set the ENV variables:

    • TWILIO_ACCOUNT_ID
    • TWILIO_AUTH_TOKEN
    • SMS_TEXT_FROM_NUMBER

The number you bought above e.g. +447480123456