Device HQ

Home Forums Device HQ Device HQ

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26446
    Mohammad
    Participant

    I am try to using the Device HQ API to build simple website, the end user can use it for monitoring the gateway information. when I try to connect to API every time failed
    I use this example
    https://www.devicehq.com/api/v2/test

    I get this result
    {“errors”:[{“detail”:”Content-Type header must be set to either application/vnd.api+json or application/json”}]}

    #26447
    Jason Reiss
    Keymaster

    Try setting header “Content-Type” to either “application/vnd.api+json” or “application/json”.

    #26451
    Mohammad
    Participant

    get this message, still not working

    {“errors”:[{“detail”:”API authentication failed.”}]}

    #26455
    Jason Reiss
    Keymaster

    Looks like /api/v2/test needs authentication although the doc says it shouldn’t.

    http://www.multitech.net/developer/software/devicehq/account-api/account-api-authentication/

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