Installation
Using the Verdocs JS SDK is easy, and usually takes only a few minutes to add to a project.
Begin by installing the Verdocs JS SDK in your project:
# NPM
npm i -S @verdocs/js-sdk
# Yarn
yarn add @verdocs/js-sdk
# PNPM
pnpm add @verdocs/js-sdkOnce the library is installed, importing and using it is easy:
import {VerdocsEndpoint, getTemplates} from '@verdocs/js-sdk';
const templates = await getTemplates(VerdocsEndpoint.getDefault());
console.log('My templates', templates);JS/TS SDK
The Verdocs JS SDK is an "isomorphic" library that may be used in both server-side (NodeJS) and browser applications. This library provides type definitions and function call wrappers for every endpoint in the Verdocs Platform API, and is recommended over calling the API directly when possible. Typescript is not required to use this library, but it is strongly recommended in new projects to get the most benefit from
Authentication
Next Page