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.
Events will be forwarded as POST requests with JSON payload.
And what is the name of the received POST variable?
What do you mean by variable? It's not a form, it's a JSON payload.
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.