From the “Annotated examples” I want to “control LEDs over the net” but I dont know how to make API call using my windows7 64bit system. I downloaded cURL for Windows 64 bit (http://curl.haxx.se/download/curl-7.33.0-win64-ssl-sspi.zip) and placed it in c:\windows\systems32. Now I am able to use cURL commands from the command line. I actually like to use batch files so I created a text file and renamed it to *.bat. In the batch file I placed following text
but the command doesn’t work and I get a SSL certificate check error. I was able to control the LEDs correctly using this handy webpage http://jflasher.github.io/spark-helper/
Hi, thanks for the tips. I got my access_token and sent that along as a parameter, but then when I try to use curl to POST to my device I get a string of html for a 502 Bad Gateway page. Any ideas on what I’m doing wrong?
OK, so now I am getting back a set of return values: name, id, last_app, connected, return_value but they don’t seem to depend on what I post with params; and the LED isn’t turned on.
It’s alright, it’s late, I’ll have to look into it more later =]