Skip to Content
avatar image
Former Member

Api for getting the Device Oauth token

Hello,

I'm trying to get the oauth token for one of my devices through postman. And while making a POST request to

https://iotrdmsiotservices- trial.hanatrial.ondemand.com/com.sap.iotservices.dms/v2/api/devices/ /authentification

with the body

{
"type": "oauth
}

I receive every time a raw html page with the title "not found".

Can you please help me with what exactly am I doing wrong in this request?

Thank you,

David

Add comment
10|10000 characters needed characters exceeded

  • Former Member

    Forgot to mention that after the"iotrdmsiotservices-" and before trial is the ID of my account, and after the "devices" is my device ID.

    Thanks,

    David

  • Get RSS Feed

1 Answer

  • Nov 21, 2017 at 04:22 PM

    Hello David,

    I see 2 suspicious points in your text:

    1. Your URL ends with "/authentification" but has to be "/authentication" or "/authentication/token" (if only you do the token renewal). See documentation [1]

    2. Your body is invalid JSON - oauth value is not closed with double quote.

    Regards,

    Anton

    [1] https://help.sap.com/viewer/7436c3125dd5491f939689f18954b1e9/Cloud/en-US/65c78920d83f4e8cac6ac15e2aa07da0.html#loio3b7ea87e04f24c369a784321a66f1dd8

    Add comment
    10|10000 characters needed characters exceeded