- This topic has 4 replies, 3 voices, and was last updated 8 years, 10 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Hi, I am getting {“error”:”Authentification failed”} when I try to access my data here …
http://data.uradmonitor.com/api/v1/devices/8200000f/all/
Has something changed?
Thanks!
Pat
Hi Pat,
You will need to send authentication data via the headers. Please see the instructions in the Dashboard, under API tab.
Let me know if this helps.
Thanks!
Thanks, Radu, has this changed then?
I can use a command line CURL to do this or a bit of python, but can I actaully do this by simply typing a URL into my browser with the authentication data included?
e.g. http://data.uradmonitor.com/api/v1/devices/8200000f/all/ PLUS some the authentication data?
Sorry, this is a bit of NOOB question 🙂
Pat
You’ll need to send these custom headers.
There’s no possibility to send them in the querystring.
curl --header "X-User-id:YOURUSERID" --header "X-User-hash:YOURHASHHERE" http://data.uradmonitor.com/api/v1/devices/8200000f/all/
Example:
curl --header "X-User-id:156" --header "X-User-hash:fffdaa0badb23b8baf90b6168dd16b3a" http://data.uradmonitor.com/api/v1/devices/8200000f/all/
(this is not my real hash)
Ok, thanks! Got it. I’ve got it to work (as a test) using ARC (Advanced Rest Client).