Forward Event Data with User Data to another server

Fareed Qureshia year ago

I have build a server seperately for email, sms and whatsapp notifications, events have been forwarded to my notification server with below settings.

<entry key='event.forward.enable'>true</entry>
<entry key='event.forward.url'>http://domain.com/send_notifications.php</entry>

But i dont recevice user data, I am receiving event and device data only. Please confirm how can I forward user data like mobile no, email address as well for which event is generated or any api which return user data if provided device id (through admin user) as one device is assigned to multiple users.

Anton Tananaeva year ago

I don't think we have an API that would give you users based on device id.

use device attributes

"attributes" : {
            "proprietario" : proprietario,
            "speedLimit" : speedLimit,
            "broken" : broken,
            "operadora" : operadora,
            "chip_number" : chip_number,
            "iccid": iccid,
            "destinatarios": destinatarios,
            "sessao": sessao,
            "hash_key": hash_key,
            "data_cadastro": data_cadastro
        }