Clickatell as SMS notifier over HTTP

Christian Muckle4 years ago

Hi,

Can anyone please help me with the following:
Clickatell expects:

https://api.clickatell.com/http/sendmsg?api_id=xxxx&user=xxxx&password=xxxx&to=xxxx&text=xxxx

I had hoped I could define this as follows in the HTTP-SMS-API (https://www.traccar.org/http-sms-api/):

<entry key='notificator.types'>web,mail,sms</entry>
<entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
<entry key='sms.http.url'>https://api.clickatell.com/http/sendmsg</entry>
<entry key='sms.http.template'>
    [{
        "api_id": xxxx,
    "user": xxxx
    "password: xxxx
    "to": "{phone}",
        "text": "{message}",
    }]
</entry>

(Somehow the line-breaks got missing here)
Probably I have some of the command and/or syntax wrong

Any good ideas appreciated ;-)
Cheers, C.

Anton Tananaev4 years ago

You can't, unless it also supports POST with parameters in the payload.

spoortrack2 years ago

Christian, did you figure this out? I need to do the same.

Christian Muckle2 years ago

No, I stopped trying for different reasons. Sorry, C.

PS: Clickatells One-API documentation mentions it accepts push