Forward Event Data with User Data to another server

Fareed Qureshi 3 years 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 Tananaev 3 years ago

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

jean jose de matos 3 years ago

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
		}