Probably not a help request, might be a feature request.
Trying to setup API alert transport pointing to my SMS API provider(see below). Now these settings work if I take the double quotes out of “”$title"" and just leave it as “$title”. But when I do, all I get in the text message is $title
Googled for a couple of hours. Didn’t find much. Probably not too many people have it setup this way. Just wondering if anybody else tried a custom API SMS provider on their box.
Also if I leave the body blank I get this error message in the logs.
production.ERROR: GuzzleHttp\Exception\ClientException: Client error: POST https://api.flowroute.com/v2.2/messages?title=Testing%20transport%20from%20LibreNMS&msg=This%20is%20a%20test%20alert
resulted in a 422 UNPROCESSABLE ENTITY
response:
Settings.
TransportType
API
API Method
POST
API URL
https://api.flowroute.com/v2.2/messages
Options
title={{ $title }}
msg={{ $msg }}
Headers
POST /v2.2/messages HTTP/1.1
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
Body
{“data”: {“type”: “message”,“attributes”: {“to”: “+##########”,“from”: “+##########”,“body”: “$title”}}}
username
password