SMS API via CM.com

Sandor2 years ago

I've managed to create a notification via SMS using broker CM.com.
The relevant tech documents were nicely described.
Maybe the following would be a nice addition to this page: http-sms-api

<entry key='notificator.types'>web,mail,sms</entry>
<entry key='sms.http.url'>https://gw.cmtelecom.com/v1.0/message</entry>
<entry key='sms.http.template'>
{
    "messages": {
        "authentication": {
            "producttoken": "********-****-****-****-************"
        },
        "msg": [ {
                "allowedChannels":  ["SMS"],
                "from": "Traccar",
                "to": [{
                    "number": "{phone}"
                }],
                "body": {
                    "content": "{message}"
                }
            }
        ]
    }
}
</entry>