hi i have implemented a Door Lock project and can open the relay by typing this in my terminal windows
curl https://api.spark.io/v1/devices/xxxxxxxx/openDoor -d access_token=xxxxxxxxxxxxxxxxxxxxxx
i want to use this command to control the relay from a web browser.
please help
To run the same command from a browser, you can use any networkable programming language to send what’s called a “POST request” to our API. There are a bunch of great resources that can help here (including jflasher’s app)
You should probably take a look at the tutorial section over here: https://community.spark.io/category/project-share/tutorials
There are many helpful examples there which can be used to create a web solution. (@dave, is there any way we can promote the tutorial section a bit more, it’s rather hidden now?)