In the example below you can see how a Nexmo SMS channel can be built using a webhook template. This can be used to send SMS messages via Twillio. The url comes from the Nexmo API docs.
URL: https://rest.nexmo.com/sms/json
The API call is being made to this sms endpoint used to send SMS messages and it takes POST params. Params include:
- text: The text of the message to be sent
- from: The from header used in the SMS message usually your brand name e.g. "xtremepush"
- to: the mobile number of the user this is being pulled in from your users profile via the personalisation syntax {{mobile_number}}
- api_key: credential found on your nexmo dashboard
- api_secret: credential found on your nexmo dashboard
Template
Once you have your webhook working we recommend you save it as a template. This will allow you to quickly select it on the webhook channel page in campaign creation:
So you can save your Nexmo template with all settings configured except for the message text. When you want to send SMS via Nexmo use your webhook template and fill out the message text.
Comments
0 comments
Article is closed for comments.