octoblu / meshblu

Meshblu is a cross-protocol IoT machine-to-machine messaging system.
https://meshblu.readme.io/
MIT License
815 stars 182 forks source link

{"error":"unauthorized"} #58

Closed mareknbg closed 10 years ago

mareknbg commented 10 years ago

I am trying to get all information of a specific device/user I created before via the POST/Device API (curl -X POST -d "type=testuser" http://skynet.im/devices)

curl -X GET http://skynet.im/devices/xxxxxx--UUID--xxxxxxx --header "skynet_auth_uuid: {xxxxxx--UUID--xxxxxxx}" --header "skynet_auth_token: {12345667890}"

But it gives me an error {"error":"unauthorized"}

octoblu commented 10 years ago

Try removing the braces in your headers. i.e.

curl -X GET http://skynet.im/devices/xxxxxx--UUID--xxxxxxx --header "skynet_auth_uuid: xxxxxx--UUID--xxxxxxx" --header "skynet_auth_token: 12345667890"

mareknbg commented 10 years ago

That was it! Thank you!