ddclarivate/fingertip-veeva-api-v2
- A TypeScript client for the DRG Fingertip Formulary API (v2).
Getting Started
Installation
This is a JavaScript module available through the npm registry.
$ yarn add ddclarivate/fingertip-veeva-api-v2
NOTE: As this is currently an internal package, you need to be logged in to npm + added to the npm entreprise account. Feel free to ask in #developers or #javascript.
Usage
Get Formulary Statuses
import { DRGv2 } from "ddclarivate/fingertip-veeva-api-v2";
const { VAULT_DNS, USERNAME, PASSWORD } = process.env;
const client = new DRGv2({
apiKey: "some-api-key",
});
(async () => {
const response = await client.get("/states/", {});
console.log(`Found ${response.data.length} US states.`);
// output: Found 53 formulary status(es).
})();
Roadmap
This library is being initially developed for an internal project, so API methods will likely be implemented in the order that they are needed. Eventually, I would like to cover the entire API, so contributions are of course always welcome. The calling pattern is pretty well established, so adding new methods is relatively straightforward.