Home Forum Support Unable to pull data from API

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5367
    Pat Molloy
    Participant

    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

    #5370
    uRADMonitor
    Keymaster

    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!

    #5385
    Pat Molloy
    Participant

    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

    #5398
    Bjorn Roesbeke
    Participant

    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)

    #5400
    Pat Molloy
    Participant

    Ok, thanks! Got it. I’ve got it to work (as a test) using ARC (Advanced Rest Client).

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.