Fetch Insights with API
Click on the API button (Indicated by a Settings Wheel) below the Visualization
Each Qualetics Insight will provide the following parameters to be used for integration
- APP ID
- APP Secret
- Client ID
- Insight URL
The parameters are displayed in the API Settings dialog window
In order to render the insight in a web app, two Rest API calls need to be performed
- Get Authentication Token
- Perform a POST request to render the insight
The following is an example Rest API call using Javascript to perform the authentication and POST request respectively and load into an HTML Div container
First Define HTML Div Container
Add the following script reference to D3.JS to support visualizations
Generate Token
POST Request to fetch Insight
The full example including the HTML is shown below. (Note: The example below uses jQuery as well)
The resulting view would load the insight as below: