How to get list of assigned Space / Fetch all Apps of an Space / Fetch all Sheets of an App using REST API
Hello all, I am working on a project, where I integrated Qlik by embedding the Qlik Apps and Sheets on my website. So the flow is like below:
User comes to my site, logged in and authenticate with his Qlik account using OAuth, so I have the JWT token of the user.
User first select a Space from the dropdown, this list generated using the API: Space REST.
Then user select an App from another dropdown. These Apps are of previously selected Space and generated using the API: Apps REST.
Now the user select a Sheet from another dropdown. These Sheets are of previously selected App and generated using the JS code: Handle sheets in iframes with enigma.js.
When user select a Sheet, and click on the 'Load' button, then the related Sheet will render on the website.
It is working but there are some challenges, please check below points for query/issues:
When I tried to list the Spaces, all of the Spaces are returning from the API. However on the Qlik I can see all these Spaces, but my Qlik user not assigned/selected in these Spaces. So basically I need only Spaces where the logged user is directly assigned/selected. Is it possible to do?
I am able to view all these Spaces and Apps on the Qlik, but when I tried to embed them then it is not working. I can embed only those Apps where I am assigned in their Spaces. Following is the error I caught when tried to embed other Apps where I am not assigned in their Space.
Same issue with the Apps also. I need the all Apps of the selected Space only. So is there any filter available for the Apps by Space?
Currently I am using JS code to list Sheet by App. So is there any API available to list Sheets by an App?
Also for the embedding part, I used following 2 article/question on Qlik community, may be helpful for someone: