$ yarn add @lucidtech/las-sdk-browser$ npm install @lucidtech/las-sdk-browser
$ yarn add @lucidtech/las-sdk-node$ npm install @lucidtech/las-sdk-node
import { Client } from '@lucidtech/las-sdk-core';import { ClientCredentials } from '@lucidtech/las-sdk-node';const credentials = new ClientCredentials('<apiEndpoint>', '<apiKey>', '<clientId>', '<clientSecret>', '<authEndpoint>');const client = new Client(credentials);const content = '<read image content>'client.postDocuments(content, 'image/jpeg', '<consentId>').then(documentResponse => {console.log(documentResponse);}).catch(error => {console.log(error);})
Install dependencies
$ npm install && npm run upgrade-lucidtech
Build
$ npm run build
Run tests
$ npm run test test