Twilio Provider
Verb: twilioConnect
Available from: <Enterprise>
Connects to the Twilio provider, enabling SMS messages to be sent.
Twilio is an API that allows software developers to make and receive phone calls, send and receive text messages and perform other communication functions.
Syntax
twilioConnect --accountsid(String) --authtoken(String) (SmsProvider)=value
Inputs
Script | Designer | Required | AcceptedTypes | Description |
---|---|---|---|---|
--accountsid | Account's ID | Required | Text | API access identifier (ID). |
--authtoken | Authentication Token | Required | Text | API access token. |
Outputs
Script | Designer | AcceptedTypes | Description |
---|---|---|---|
value | SMS Provider | Sms | Returns the connection to the SMS provider. |
Example
Returns a connection to the SMS provider, based on the Twilio API, using this connection for sending SMS.
defVar --name SmsProvider --type SmsProvider
defVar --name AccessID --type String --value "Insira um identificador válido"
defVar --name tokenAccess --type String --value "Insira um token válido"
// Connect to the Twilio API.
twilioConnect --accountsid "${AccessID}" --authtoken "${tokenAccess}" SmsProvider=value
// Send an SMS based on the Twilio provider.
smsSend --provider ${SmsProvider} --from "(425) 555-0100" --to "(425) 555-1111" --text "SMS test"
Remarks
For accessing the Twilio provider, it is necessary to have an account on Twilio, the machine that will run the runtime must have access to the Twillio API.