David,
Let me first apologize for all the questions but the more I delve into this the more questions arise. I now have the code working to retrieve all my tokens. So now I have all these listed below from requesting tokens. I requested them all the same way, yet they show three different clients, spark, spark-IDE and user. What does client mean? The token with client : user is the one my app is using. How does client get set? What would be the purpose of having multiple tokens? What is the HTTP call to reset the token to one that I have retrieved?
The documentation on this topic needs to be expanded beyond just the mechanics of retrieving, listing and deleting token to include the process for managing tokens via HTTP.
Thanks,
HTTP/1.1 200 OK
Server: nginx/1.6.0
Date: Wed, 02 Jul 2014 13:28:44 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 1483
Connection: keep-alive
X-Powered-By: Express
Access-Control-Allow-Origin: *
ETag: "1238487029"
[
{
"token": "redacted",
"expires_at": "2014-06-09T02:49:55.660Z",
"client": "spark"
},
{
"token": "redacted",
"expires_at": "2014-06-09T02:58:17.516Z",
"client": "spark-ide"
},
{
"token": "redacted",
"expires_at": "2014-06-12T18:13:21.959Z",
"client": "spark"
},
{
"token": "redacted",
"expires_at": "2014-09-24T13:33:30.937Z",
"client": "user"
},
{
"token": "redacted",
"expires_at": "2014-09-24T13:27:51.597Z",
"client": "spark"
},
{
"token": "redacted",
"expires_at": "2014-09-24T13:30:35.963Z",
"client": "spark-ide"
},
{
"token": "redacted",
"expires_at": "2014-09-29T20:00:51.251Z",
"client": "spark"
},
{
"token": "redacted",
"expires_at": "2014-09-29T20:01:46.992Z",
"client": "spark"
},
{
"token": "redacted",
"expires_at": "2014-09-29T20:06:29.637Z",
"client": "spark"
},
{
"token": "redacted",
"expires_at": "2014-09-30T01:54:43.097Z",
"client": "spark"
},
{
"token": "redacted",
"expires_at": "2014-09-30T02:05:06.274Z",
"client": "spark"
}
]