How to get ACCESS TOKEN for Exstream APIs

dmei
dmei Member
edited September 9 in Exstream #1

To use Exstream APIs, I am able to use endpoint /authentication/credentials to get OTDS ticket, but for some APIs, they request an ACCESS TOKEN, my question is how to get the ACCESS TOKEN?

This is the response of /authentication/credentials

{    "token": "213312312312312312312312",   

"userId": "my Id",   

"ticket": "*OTDSSSO*AbBBQlFDajNEdGtRcUlMNmJDZGVGbX…"

}

Answers

  • The access token is something to request from the OTDS API. I followed this route:

    You need to configure an "OAUTH client". You can choose the client_id, but the "secret" is generated upon creation. Take note on the Resource parameter that is to be set to value Resource:Empower.

    I too needed a "regular user account" for successful login (usernamem, password, grant_type). I placed both in a group that has "Empower-Admin" permissions, as you need this one to manipulate the documents = admin. I was not successful with the OAUTH credentials alone.

    You might not need the refresh_token, as usually the API call does not time out the session.

    Then call the /otdsws/login API.