{
"ok": false,
"errors": [
"arg.deviceID is empty"
]
}
According to the documentation (http://docs.spark.io/#/api - “List devices the currently authenticated user has access to.”), I shouldn’t have to put a device ID in for the /v1/devices command - any ideas what I’m doing wrong?
It looks like old access tokens that were generated before this new feature aren’t showing up. If you first create a new access token by doing POST /oauth/token, it should show up by then doing GET /v1/access_tokens
GET /v1/access_tokens will retrieve an array of any access tokens created since we deployed this route last week.
POST /oauth/token will create a new token. You can have as many as you want.
As a backward compatibility workaround during the transition, you can still use the access token shown in the web IDE even if you haven’t created a new one. After you create your first one, the results will no longer be out of sync.