API Trouble - Unknown Variable: false

I have a Photon with two functions that I’m trying to call from a webpage.

motionUp & motionDown

My API string looks like this (data replaced to protect the innocent)

https://api.particle.io/v1/devices/33333333333333333333333333333333/motionDown/?access_token=000000000000000000000000000

When I paste that in a browser I get a “Unknown Variable: false” error
Using the Particle Console the function work just fine.
Not sure what the issue could be.

If it’s just in the browser that’s an HTTPS GET request and to call functions I believe they need to be HTTP POST which is why using curl to test functions is the recommendation.

Look at this old tutorial I wrote for how to do it:

1 Like