Get data on event.forward.url

digittecnic8 years ago

Hi,

I want to receive events in a php script for an external system.
How do I receive the data of the event in question?
I have configured the parameter event.forward.enable = true and event.forward.url = (a php function).

When an event happens, traccar server calls that function but I do not know how to retrieve the event data that has happened.
There is no POST and GET data (or at least I have not been able to recover it.

Thank's for all.

Anton Tananaev8 years ago

Events will be forwarded as POST requests with JSON payload.

digittecnic8 years ago

And what is the name of the received POST variable?

Anton Tananaev8 years ago

What do you mean by variable? It's not a form, it's a JSON payload.