This example demonstrates how to download all of the records in a process using the QbDVision REST API with Node.js and then display them in a diagram.
- Node.js 20.x or higher
- A QbDVision API key
- Install the dependencies
npm install
- Copy
.env.example
to.env
and fill in:- Modify
API_Key
to be your QbDVision API key. - Modify
BASE_URL
to point to your QbDVision environment if you're not using Sandbox. - Modify
PROJECT_ID
andPROCESS_ID
to be the project and process ID that you want to see.
- Modify
- Build the example:
npm run build
- Download the process data:
npm run download
- Launch the web server:
npm run start
- Navigate to
http://localhost:3000
in your browser.
The output on the webpage will look something like:
- Use a key store for API keys
- Implement proper error handling and retries
- Add logging/reporting according to your company's standards
- Use the latest versions of all libraries