0.0.1 • Published 5 months ago

@rantalainen/lemonsoft-api-client v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

lemonsoft-api-client

LemonsoftApiClient is a third party Lemonsoft API client for NodeJS. It is a wrapper around an API client that has been automatically generated using the OpenAPI schema provided by Lemonsoft.

Installation

Add to project's package.json:

npm install @rantalainen/lemonsoft-api-client

Import to NodeJS project

const { LemonsoftApiClient } = require('@rantalainen/lemonsoft-api-client');

Import to TypeScript project

import { LemonsoftApiClient } from '@rantalainen/lemonsoft-api-client';

Setup client with options

const lemonsoft = new LemonsoftApiClient(
  {
    userName: 'example@example.com',
    password: 'password',
    database: 'LemonDBx',
    apiKey: 'api_key'
  },
  {
    baseURL: 'https://rest-s01-prod02.lemonsoft.eu/Lemonsoft30'
  }
);

Available methods can be found in the API documentation.