Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I managed to connect to Nprinting via Postman to test functionality.
However when launching get request in Postman https://<NPR SERVER>:4993/api/v1/apps
I am getting the following results , where I would expect some data coming back
Have you tried connecting via the Qlik REST connector within the Qlik Sense app? What were the results?
Is what you are seeing preventing you from making an NP API call.
Are you seeing any specific errors associated with the output you shared?
Note that we did have something similar reported in the past but that was fixed in Sept. 2019 NPrinting API suite.
See following help page to assist with modifying default limits:
Kind regards...
Hi @fachto76
First call should be an authentication call with the user who has NPrinting role assigned allowing it to read required entities. That would allow you to obtain a cookie which you can use in subsequent calls. To simplify things you could use service account credentials to run such call.
So the most important question at this stage is which user have you used and what access does this user have in NPrinting?
If you are authenticated with service account user you should be able to run "get Apps" method to obtain list of all existing apps...
Have you tried connecting via the Qlik REST connector within the Qlik Sense app? What were the results?
Is what you are seeing preventing you from making an NP API call.
Are you seeing any specific errors associated with the output you shared?
Note that we did have something similar reported in the past but that was fixed in Sept. 2019 NPrinting API suite.
See following help page to assist with modifying default limits:
Kind regards...
Hi @fachto76
First call should be an authentication call with the user who has NPrinting role assigned allowing it to read required entities. That would allow you to obtain a cookie which you can use in subsequent calls. To simplify things you could use service account credentials to run such call.
So the most important question at this stage is which user have you used and what access does this user have in NPrinting?
If you are authenticated with service account user you should be able to run "get Apps" method to obtain list of all existing apps...
Thank you @Frank_S , your first link, showed me the way.
All was set up correctly, just 1 important thing missed out, setting my service account as administrator in NPrinting.
Once done, immediate results
Thanks @Lech_Miszkiewicz , yep service account was not setup as administrator.
I also would like to thank you as over the past days when trying to resolve I found a lot of useful information provided by you.
no problem - I am glad i could help..
If you are intending on using API within Qlik Sense or QlikView script you may leverage my library which already takes care of how the scripts structures need to look like.
It may be outdated in some areas but you will get general feel on how calls need to be made.
More detail you can find here:
https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/
cheers
Lech