This package communicates with the Veeva API - handling with validation and authentication.
First - install the NPM package in your project by logging into NPM, and running:
npm login
npm install @lxlabs/veeva-api-service
From there, add in the reference to the service within your code:
import VeevaService from '@lxlabs/veeva-api-service';
(async () => {
const service = new VeevaService({
host: 'vault dns url',
username: 'vault username',
password: 'vault password'
})
const documents = await service.document.get();
console.log(documents);
})()
To view documentation, you can clone the project repo, install all dependencies, and then run npm run docs - this will create an /docs folder in the root directory.
Generated using TypeDoc