GET /v1/devices not working

I am trying to get my spark to talk to the world. I try using curl / and it wants an access token, but that doesn’t really make sense to me since each of my devices would have a different token. Can someone show me an example of the curl command that works to get all my devices?

Since @Dave hasn’t picked this thread up yet, I will give it a go. Start here:

The access token is “you” and the device id is each “core”. They are paired in the cloud software after you claim your cores so that both are needed to access your cores via the cloud.

You get your access token from the web-based IDE (click the Build button the page). There is more detail at the bottom of this thread:

You can also get it via oauth–searching in the forum here will show you how.

With just the access token (“you”), you can ask, “What cores do I have?” to learn their device id’s. Or you use the web IDE (Build button) target function to discover the device id’s of your cores.

If you are using curl, don’t forget that adding parameters via -d automatically assumes your want a POST command but sometimes you still want a GET command. The -G flag to curl forces it to do a GET command even with -d parameters.

There is lots more getting started help here in forum–just look around. We all have to start somewhere!


Great explanation, @bko! @haywardt let us know if you’ve got any other questions that we can help with! Were you able to get everything working?

1 Like

Everything works great. I am counting revolutions of the wheel in my electric meter.