connective-api
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

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'),
            },
        },
    ],
});

Readme

Keywords

none

Package Sidebar

Install

npm i connective-api

Weekly Downloads

30

Version

4.0.0

License

LGPL-3.0-or-later

Unpacked Size

267 kB

Total Files

164

Last publish

Collaborators

  • -waylander-