API WhatsApp de waboxapp.com

David3 years ago

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&amp;uid=549115163xxxx&amp; </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?

David3 years ago

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&amp;uid=5491151631xxxx&amp;</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 ?

Anton Tananaev3 years ago

Next time please don't use all caps for title or description.

David3 years ago

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?

Anton Tananaev3 years ago

The error seems to be pretty self-explanatory.

David3 years ago

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 < ...)
cristian2 years ago

Hola David, lograste solucionar ese error me esta apareciendo lo mismo.

Hi David, did you fix the problem? I have the same error

David2 years ago

no

Hi David, any updates? Did you fix the problem?

.5 months ago

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]&amp;uid=[Your Number]&amp;</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>