‎06-10-2019 10:43 AM - edited ‎02-10-2020 09:11 AM
Before making any call to a REST API in HOPEX you need to get an authentication bearer token. This token will allow you to access the data based on your credentials. Prior to continue make sure you have at leat the there following information :
To get a token make a REST API call to the following URL
https://<<my server here>>/UAS/connect/token
You can make this call with a tool like Postman for instance. the request will be a POST request to which you will provide a set of parameters in the body.
Selection for the body option : x-www-form-urlencoded
The parametes for the body are :
grant_type: password
scope:hopex openid read write offline_access
username:<<my hopex login here>>
password:<<my hopex password here>>
client_id:HopexAPI
client_secret:secret
environmentId:<<my hopex environment absolute identifier>>
Need to know how to get the environmentID ? Read this post
Some of the option can be different than in this example depending on the installation option you have done.
Body Response format :
To get an detailed explaination watch the following video
More from the documentation click here