·¬ÇÑÉçÇø

Brightspot CMS User Guide

Integrating a text messaging service


Some editors may want to receive notifications via text messaging. This section describes integrating Twilio as the text messaging service. Integration for other services is similar.

To integrate a text messaging service:

  1. Log in to your Twilio console, and select the account from which you want to send text messages. The account's dashboard appears.
  2. Under Account Info, copy the values for Account SID and Auth Token into a text editor.

    Twilio account info Twilio account info

  3. In a text editor, open the Tomcat configuration file context.xml.
  4. Add lines similar to the following:

    <!-- SMS -->
    <Environment name="dari/defaultSmsProvider" type="java.lang.String" value="twilio" /> 
    <Environment name="dari/smsProvider/twilio/class" type="java.lang.String" value="notifications.TwilioSmsProvider" /> 
    <Environment name="dari/smsProvider/twilio/accountSid" type="java.lang.String" value="putYourAccountIDHere" /> 
    <Environment name="dari/smsProvider/twilio/authToken" type="java.lang.String" value="putYourAuthTokenHere" />
    <Environment name="dari/smsProvider/twilio/defaultFromNumber" type="java.lang.String" value="+12028164833" /> 
    • Specifies the default text messaging configuration as twilio. This configuration appears by default in the Sms Provider Setting Key field in step 8.
    • Specifies the fully qualified class name implementing the text messaging service.
    • Value for the account ID that you copied in step 2.
    • Value for the authentication token that you copied in step 2.
    • Default from number that appears in the recipient’s text message. This number must be one that the SMS service recognizes as authorized to send text messages.

  5. Save and close the configuration file.
  6. Restart the Tomcat server.
  7. In Brightspot, click menu> Admin > Sites & Settings > Sites > Global. The Edit Global widget appears.
  8. Under CMS > Notifications > SMS Settings, do the following:

    1. In the Default From Phone Number field, enter what appears as the "from" number in text messages.
    2. In the Sms Provider Setting Key field, keep the default configuration (twilio as in the above snippet), or enter one of the other configurations.
  9. Click Save.
Previous Topic
Notification administration
Next Topic
Conditions for sending notifications
Was this topic helpful?
Thanks for your feedback.
Our robust, flexible Design System provides hundreds of pre-built components you can use to build the presentation layer of your dreams.

•
•
•
Brightspot is packaged with content types that get you up and running in a matter of days, including assets, modules and landing pages.

• Content types
• Modules
• Landing pages
Everything you need to know when creating, managing, and administering content within Brightspot CMS.

• Dashboards
• Publishing
• Workflows
• Admin configurations
A guide for installing, supporting, extending, modifying and administering code on the Brightspot platform.

• Field types
• Content modeling
• Rich-text elements
• Images
A guide to configuring Brightspot's library of integrations, including pre-built options and developer-configured extensions.

• Google Analytics
• Shopify
• Apple News