I'm trying to pass (2) variables to a Webcore piston to allow external process to execute the piston. I can run the piston by connecting to the piston's external URL without a problem but receive an "invalid token" error anytime I try to add the variables.
I'm ensuring the variables are URL encoded. For example, spaces have been replaced with %20.
If I open the URL without the variables (remove everything from the ? on) it executes fine. As soon as I add the variables I get the "invalid token" error.
Any assistance anyone can offer is much appreciated. I'm attempting to setup a webcore piston that would allow an external program to do text to speech on various Amazon Echo devices that are controlled in Webcore with the Echo Speaks App,
Looks like a discrepancy between Webcore for Smartthings and Webcore for HE. If you examine the URL generated for a similar piston, you notice the syntax is notably different. For example:
Obviously the hosts will be different but the syntax deviates significantly. This looks like some form of versioning issue between the Smartthings and HE versions of Webcore.
This is a bummer because currently Echo Speaks only works with HE.
Fell back on my old web dev memories, and remembered that the data being passed uses the ? as the delimeter from the URI; that meant that everything else you wanted to pass had to go as a named array/map - in a URL those items are delimited by the &