Socket
Socket
Sign inDemoInstall

connective-api

Package Overview
Dependencies
13
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    connective-api

Promise based library for the Connective.eu API


Version published
Weekly downloads
25
increased by38.89%
Maintainers
1
Install size
765 kB
Created
Weekly downloads
 

Readme

Source

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 versionConnective API versioneSignature version
^4.0.0v4v7.4
^3.0.0v4v7.2
^2.0.0v4v7.1
^1.0.0v3v5.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'),
            },
        },
    ],
});

FAQs

Last updated on 24 May 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc