connective-api
v5.0.0
Published
Promise based library for the Connective.eu API
Downloads
132
Readme
Connective.eu API library
A promise based library for the API of connective.eu with types.
This library is not a product of, nor made by, connective.eu.
Compatibility
| Package version | Connective API version | eSignature version | |-----------------|------------------------|--------------------------------------------------------------------------------| | ^5.0.0 | v4 | v7.6 | | ^4.0.0 | v4 | v7.4 | | ^3.0.0 | v4 | v7.2 | | ^2.0.0 | v4 | v7.1 | | ^1.0.0 | v3 | v5.5 |
Usage
This is a simple example of how to create a package and upload a document.
import * as fs from 'fs';
import {Connective} from 'connective-api';
connective = new Connective({
endpoint: 'https://your-company.connective.eu',
password: 'your password',
username: 'your username',
});
const {data: createPackageData} = await connective.packages.create({
Initiator: '[email protected]',
Name: 'package',
Status: 'Draft',
Documents: [
{
Elements: [],
Name: 'Test document',
Language: 'en',
DocumentOptions: {
ContentType: 'application/pdf',
Base64data: documentData.toString('base64'),
},
},
],
});