Seeed-Studio / Wio_Link

Wio_Link 8266
http://seeed-studio.github.io/Wio_Link/
182 stars 64 forks source link

how can I get the node token via the restful api #2

Closed jiangzidong closed 8 years ago

jiangzidong commented 8 years ago

Hi, How can I get the node token via the API in http://seeed-studio.github.io/Wio_Link/#status-code-and-format-of-the-response. I can't find one.

As for user token, i think POST /v1/user/create, POST /v1/user/changepassword and POST /v1/user/login will return the user token.

KillingJacky commented 8 years ago

Hi Jiang,

Please move a little bit down on that page, the detailed response of each API call is illustrated on the right side of that API section.

KillingJacky commented 8 years ago

The node token can be queried with /v1/nodes/list API http://seeed-studio.github.io/Wio_Link/#list-all-nodes-of-a-user. The key for node token is "node_key", sorry for the confusedness. And thanks for the reminder, we will add descriptions about the node token.

jiangzidong commented 8 years ago

I see, thanks