Buen dia, me encontre con el provedor de api WHATSAPP DE WABOXAPP.COM
Mi idea es integrado segun este hilo: https://github.com/traccar/traccar/issues/4481
En mi configuracion Traccar.xml :
<entry key='notificator.types'>web,mail,traccar,sms</entry>
<entry key = 'notificator.traccar.key'>m_key</entry>
<entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
<entry key='sms.http.url'>https://www.waboxapp.com/api/send/chat?token=6f7f97d13710971fd06e6b587166734d606641fd7b651&uid=5491151631xxxx&</entry>
<entry key='sms.http.template'>
{
"phone":549115163xxxx,
"body":"HI"
}
</entry>
En notificaciones de Traccar, uso la opcion sms pero no me llegan los mensajes, que estoy haciendo mal ?
Next time please don't use all caps for title or description.
Disculpen Anton en el servidor traccar cuando envio teste me salta este error:
"error":" WA session for '549115163xxxx' is not connected with waboxapp right now"} - MessageException (HttpSmsClient:96 < NotificatorSms:57 < NotificationResource:63 < ...)
Podrias Ayudarme?
The error seems to be pretty self-explanatory.
El telefono ya esta conectado y logueado con whasap ahora me sale este error:
{"error":"Missing 'to' parameter"} - MessageException (HttpSmsClient:96 < NotificatorSms:57 < NotificationResource:63 < ...)
Hola David, lograste solucionar ese error me esta apareciendo lo mismo.
Hi David, did you fix the problem? I have the same error
no
Hi David, any updates? Did you fix the problem?
Hi guys, i got it! Works fine, but only one time. Waboxapp uses unique custom ids:
<!-- WEB/WHATSAPP-->
<entry key='notificator.types'>sms,web</entry>
<entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
<entry key='sms.http.url'>https://www.waboxapp.com/api/send/chat?token=[your token]&uid=[Your Number]&</entry>
<entry key='sms.http.template'>
{
"to":"{phone}",
"custom_uid":"XXX", --------> You need to change the custom id to each message, so you have to create an id for each event
"text":"{message}"
}
</entry>
Good morning, I found the api provider WHATSAPP FROM WABOXAPP.COM
My idea is integrated according to this thread: https://github.com/traccar/traccar/issues/4481
In my Traccar.xml configuration:
<entry key = 'notificator.types'> web, mail, traccar, sms </entry> <entry key = 'notificator.traccar.key'> eyJkYXRhIjo4ODAzfS5DNVI3eU9vVGo2ck16RGl2ajUvdEF3L0ZIUGIyc0RkWU1sLzhmV3krekJV </entry> <entry key = 'notificator.sms.manager.class'> org.traccar.sms.HttpSmsClient </entry> <entry key = 'sms.http.url'> https://www.waboxapp.com/api/send/chat?token=6f7f97d13710971fd06e6b587166734d606641fxxxxxx&uid=549115163xxxx& </entry> <entry key = 'sms.http.template'> { "phone": 549115163xxxx, "body": "HI" } </entry>
In Traccar notifications, I use the sms option but the messages do not reach me, what am I doing wrong?