Hi. I’m trying to send some payload from devices to endpoint.
I’m testing the HTTP integrations with a webhook. And I can receive payload with join and up event.
How do I send the payload to the endpoint only when the event is up
?
Hi. I’m trying to send some payload from devices to endpoint.
I’m testing the HTTP integrations with a webhook. And I can receive payload with join and up event.
How do I send the payload to the endpoint only when the event is up
?
That is not possible, but you could filter out the up events. The event type is exposed in the query string (?event=up
).
I’m interested in this too, but don’t have control over the endpoint so I guess using something like Sed to strip that out then using curl to do the POST? @steve_lee did you solve this? Geez I barely remember what regular expressions are, let alone how to use them!
Solved using Python with API libraries as mentioned in the docs, used the ‘requests’ library to forward packets on. Nice and easy.