on 2019 Nov 06 10:06 PM
Trying to use the service keys from the SAP Intelligent Asset Management (AIN, ASPM) in Postman.
I've followed these instructions:
https://help.sap.com/viewer/76bd798328604d59bb846b97d30315e1/1908/en-US
I can successfully generate a token using OAuth 2.0.
Then, I try to send a GET call to <Service-name>/services/api/v1/alerttype URL with the option Add authorization data to Request Headers enabled.
All I get is a redirect to a SAP HANA XS Advanced login.
Can someone please explain what I am missing?
Thank you.
Request clarification before answering.
According the the API Reference for Alert Types (version 1911), the API endpoint is /alerttypes, so try:
GET https://ain.xyz.asd.hana.ondemand.com/ain/services/api/v1/alerttypes
This should work in Postman with Authorization set to Type = OAuth 2.0 and Add authorization data to Request Headers and your valid OAuth token pasted to Access Token.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
4 | |
4 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.