The following outlines how to set up a Webhook campaign using the external API.
In this example we will be creating a Nexmo SMS campaign.
curl -X POST -d '{
"apptoken":"YOUR_APP_TOKEN",
"title":"webhookSmsExample",
"webhook":"1",
"broadcast":"1",
"messages":{
"8":{
"webhook":{
"url":"https://rest.nexmo.com/sms/json",
"get_params":[
{
"key":"text",
"value":"your activation code is \"4321\""
},
{
"key":"from",
"value":"Xtremepush"
},
{
"key":"to",
"value":"12345"
},
{
"key":"api_secret",
"value":"NEXMO_SECRET"
},
{
"key":"api_key",
"value":"API_KEY"
}
],
"request_body_type":"raw",
"request_body_data":{
"raw":"",
"post":"",
"json":""
},
"request_headers":""
}
}
}
}'https://external-api.xtremepush.com/api/external/create/campaign
"apptoken":"YOUR_APP_TOKEN",
"title":"webhookSmsExample",
"webhook":"1",
"broadcast":"1",
"messages":{
"8":{
"webhook":{
"url":"https://rest.nexmo.com/sms/json",
"get_params":[
{
"key":"text",
"value":"your activation code is \"4321\""
},
{
"key":"from",
"value":"Xtremepush"
},
{
"key":"to",
"value":"12345"
},
{
"key":"api_secret",
"value":"NEXMO_SECRET"
},
{
"key":"api_key",
"value":"API_KEY"
}
],
"request_body_type":"raw",
"request_body_data":{
"raw":"",
"post":"",
"json":""
},
"request_headers":""
}
}
}
}'https://external-api.xtremepush.com/api/external/create/campaign
Comments
0 comments
Article is closed for comments.