POSTing from webhook as an integer

Hi Guys,

Does anyone know how to send a PARTICLE_EVENT_VALUE as an integer from the custom JSON webhook.

If i send this it works
"field1": 3

and this is doesn’t
"field1": “{{PARTICLE_EVENT_VALUE}}”

Obviously I wanting to sent the Event Value

Cheers
Connor

Have a read of this https://github.com/rickkas7/particle-webhooks. {{PARTICLE_EVENT_VALUE}} is not what you want

It’s now possible to use the Console to define hooks with integers values. See Console webhook editor improvements

Under the covers, it send the json property as a string. As long as after replacing {{PARTICLE_EVENT_VALUE}} and other variables the string ends up being valid JSON it will work.