Twilio

Sending SMS notifications through the notification service provider Twilio. To be able to send messages, registration with Twilio and a positive balance are required.

Configuration:

  • Token
  • Sid
  • From

Attributes:

  • Amount
  • Sid
  • Currency

JavaScript Properties:


New Message

Creates a message object

msg = notifr.newMessage();
msg.entity_id = 'twilio.name';
msg.attributes = {
  'phone': '+79990000001',
  'body': 'some text'
};

Value Description
newMessage() Method
msg Type: Object (Message)

Code Example:

# twilio
# ##################################

sendMsg =(body)->
  msg = notifr.newMessage();
  msg.entity_id = 'twilio.name';
  msg.attributes = {
    'phone': '+79990000001',
    'body': 'some text'
  };
  notifr.send(msg);
Last modified February 5, 2024: Merge pull request #270 from e154/master (7108cb6)