When it registers, action=foo makes it but dev={{___}} doesn’t. In other words, nothing after action=foo is registered. Do I need to escape the & or something?
Okay this doesn’t work. This is what my json file has:
{
“eventName”: “switchevent”,
“url”: “http://blahblah/thing.asp”,
“requestType”: “GET”,
“query”: {
“action”: “ss”,
“parm”: “{{SPARK_EVENT_VALUE}}”
},
“mydevices”: false
}
It registers the webhook and all but it doesn’t work. If I look back to the terminal session, it repeated back the json minus the “query” parm. Did it ignore it because it’s a GET instead of a POST? I need to be able to do a GET with two parms and putting all on one line doesn’t work.
@Tahl, just a note that with mydevices = false, you are using an event name that may be common in the public event stream. Also, I believe the documentation may be misleading but “eventName” should be just “event”.
@peekay123 thanks for the info. I’ll turn the mydevices to true. And eventName to event. There is still, however, the other problem and hopefully can get a resolution.
You should get back “Status=Error” because the 1234 is not recognized as a valid string sent from the Photon to our cloud. I see no attempt in our log yesterday or today. Give it a try. Thanks.
@kennethlimcp thanks for getting back. The json that’s actually in the file is as you have above; that is, with the hyphen instead of the dot. I’ll try again and see what happens.