|
You arw now set to use the data in your own software, eg Power BI.
NOTE: Antenor-OTG do not necessarily have competency beoynd this point as this can involve a number of software. Any assistance from us will be invoiced.
To work with API will require IT competencies and specifically competency for the software used, eg POWER BI.
The below instructions is ment for helping. If this does not work contact your IT departement.
Authenticate using the credentials (email, pwd) using terminal or any other programming language – Check authentication method on the api documentation – https://documenter.getpostman.com/view/6701834/S11DTMK6 |
Example about how to authenticate:
-You’ll need to open Terminal or Command prompt and run this command: curl –location -g –request POST «https://abms.antenor.no/api/authenticate?email={{email}}&password={{password}}»
«https://abms.antenor.no/api/authenticate?email={{email}}&password={{password}}»
-Replace {{email}} and {{password}} with your user email and password
-After running the command you’ll get a response like: «auth_token»: fnajkfkankxzsfnajnfjsaknkfsnaknsfj
-Now you have logged in successfully and you have your access token, valid for 24 hours.
-Copy the value (fnajkfkankxzsfnajnfjsaknkfsnaknsfj)
To import the data into powerBi |
-Open PowerBi
– Click Get Data – Web. Click Advanced
-Add the API url for the report:https://abms.antenor.no/api/v1/{{customer_id}}/documents/reports/{{report_id}}?count=10&page=1&language=en (replace {{report_id}} variable with the report id from the browser url). This is the url for reports api. For other api urls please read our api documentation
– In the bottom there is a section for Http request header:
-Type Authorization in the left side input field
-Type Bearer {{auth_token}} in the right side input field (replace {{auth_token}} with the value copied after you authenticated in command prompt)
-Click OK. Click Connect

