1.2.0 • Published 1 year ago

@rubynetwork/corlink-sdk-node v1.2.0

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
1 year ago

Corlink SDK Node

This is the official Corlink SDK for Node.js. It provides a simple way to interact with the Corlink API.

Installation

npm install @rubynetwork/corlink-sdk-node

Usage

  • CommonJS
const { Corlink } = require('@rubynetwork/corlink-sdk-node');
//create a new Corlink instance
const corlink = new Corlink({
    corlinkAPIUrl: 'https://corlink.example.com',
    corlinkAPIKey: 'your-api-key',
});

//use any of the methods here ex: createKey
async function createKey() {
    const key = await corlink.createKey();
    console.log(key);
}

createKey();
  • EcmaScript Modules (ESM)
import { Corlink } from '@rubynetwork/corlink-sdk-node';

//create a new Corlink instance
const corlink = new Corlink({
    corlinkAPIUrl: 'https://corlink.example.com',
    corlinkAPIKey: 'your-api-key',
});

//use any of the methods here ex: createKey
async function createKey() {
    const key = await corlink.createKey();
    console.log(key);
}

createKey();
1.2.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago