SMS - http api

Kalle Kilpinen6 years ago

Hi A,
is there coming sms http api support to next version of T?
I think many T users would like that couse thereĀ“s many cheap operators with api token.
BTW all new phrases are translated to finnish for next version...and made some correction to old translations.
BR, Kalle

Anton Tananaev6 years ago

Support for HTTP SMS APIs will not be available in the next release, but possibly in one of the future releases.

Thanks for translations.

trackinguser4456 years ago

anton: big thanks for slowing down the captcha! Tell us what your thinking with SMS API-can you elaborate more on "possibly"

Anton Tananaev6 years ago

Many people asked for it, so there is a chance that it will get implemented eventually.

trackinguser4456 years ago

kalle-can you advise of some token providers? anton: how do you see implementing it as a developer? have you done a survey about usages from different perspectives?

Anton Tananaev6 years ago

I haven't thought about it yet.

Traccar Baba5 years ago

Dear Anton ! I was happy to See HTTP SMS API in Latest Version but none of the Example Codes Running. My Config Setting is

<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://smsgateway.me/api/v4/message/send</entry>
<entry key='sms.http.authorization'>eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhZG1pbiIsImlhdCI6MTU0MTkzNjUwNSwiZXhwIjo0MTAyNDQ0OD etc etc </entry>
<entry key='sms.http.template'>
    [{
        "phone_number": "{phone}",
        "message": "{message}",
        "device_id": 1
    }]
</entry>

Also When I try to use another than these API I have HTTP SMS API on Android it also not worked. Can You guide me Where I am mistaken. I have added Phone in Web App as well .

Anton Tananaev5 years ago

You can try to ask @marcosdallagnelo:

https://github.com/traccar/traccar/pull/4011

Joao Paulo Lino5 years ago

Anton Tananaev

I have an SMS API where a link with user code and token is generated as an example below

http://MYDOMAIN/api_sms.php?code=1&token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

But I could not find the correct parameter to use and I tried all available here
https://www.traccar.org/http-sms-api/
and I modified several ways to try to make it work, but without success

Example My Used Parameters

<entry key='notificator.types'>web,mail,sms</entry>
<entry key='notifator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
<entry key='sms.http.url'>http://MYDOMAIN/api_sms.php?</entry>
<entry key='sms.http.user'>1</entry>
<entry key='sms.http.password'>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</entry>
<entry key='sms.http.template'>
    destination={phone}&amp;message={message}
</ entry>
Murthy Varanasi3 years ago

can you pls let me know if this is wrong , my sms is not passing thorugh

<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.msg91.com/api/sendhttp.php</entry>

<entry key='sms.http.template'> { route=xx&sender=xxxxx&country=91&mobiles={phone}&message={message}&authkey=xxxx
}
</entry>

this is the http api that works

https://api.msg91.com/api/sendhttp.php?route=4&sender=senderid&message=Hello! This is a test message&country=91&mobiles=1234567890&authkey=xxxxxx