MatthiasKunnen / node-connective

Node library for https://connective.eu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm version Build Status Code coverage License

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
^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: 'info@example.com',
    Name: 'package',
    Status: 'Draft',
    Documents: [
        {
            Elements: [],
            Name: 'Test document',
            Language: 'en',
            DocumentOptions: {
                ContentType: 'application/pdf',
                Base64data: documentData.toString('base64'),
            },
        },
    ],
});

About

Node library for https://connective.eu

License:GNU Lesser General Public License v3.0


Languages

Language:TypeScript 97.6%Language:JavaScript 1.6%Language:Shell 0.8%