Using templates
Notice: rest_validate_value_from_schema was called incorrectly. The "type" schema keyword for can only be one of the built-in types: array, object, string, number, integer, boolean, and null. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /nas/content/live/whisbihc/wp-includes/functions.php on line 5229
You are able to use templates Once you know the template name you want to use and language you are able to send a sms.
You have the option of create a template*, the template will contain a body message, language and the engage url so you just need the template name and send the variables inside the request.
Example – POST:
https://api.whisbi.com/api/sms
body:
{
"account": "000000-0000-1111-0000-109f58471b09",
"from": "+18091375163",
"to": "+34664725444",
"variables": {
"username": "John",
"dayName": "tomorrow"
},
"engage_url": "https://google.es",
"template": "engage session template",
}
Bear in mind, the variables are referencing the body of the template
If you wish to use message template send an email to support@whisbi.com with the template information.