Hello,
It is possible to use {{PARTICLE_DEVICE_ID}} and other in Full URL of WebHooks?
Hello,
It is possible to use {{PARTICLE_DEVICE_ID}} and other in Full URL of WebHooks?
As query parameters the answer is yes, I have that working myself, this webhook definition example against requestbin illustrates that.
{
"event": "testEvent",
"url": "http://requestb.in/p3fi3kp3",
"requestType": "GET",
"query": {
"device": "{{PARTICLE_DEVICE_ID}}"
},
"noDefaults": true,
"mydevices": true
}
This guide to webhooks is good Particle Webhooks Intermediate Tutorial but does not cover mustache/handlebars templates in the URL itself.
Yes this one i know..
How about add in url it will work?
{
"event": "testEvent",
"url": "http://requestb.in/p3fi3kp3/{{PARTICLE_DEVICE_ID}}",
"requestType": "GET",
"query": {
"device": "{{PARTICLE_DEVICE_ID}}"
},
"noDefaults": true,
"mydevices": true
}
What happened when you tried?
Creating a webhook in the IDE, I entered this as url and it worked as intended: