Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 840 Bytes

File metadata and controls

38 lines (27 loc) · 840 Bytes

valamis-api-client

ValamisApiClient is a third party Valamis API client for NodeJS. It is a wrapper around an API client that has been automatically generated.

Installation

Add to project's package.json:

npm install @rantalainen/valamis-api-client

Import

import { ValamisApiClient } from '@rantalainen/valamis-api-client';

Setup client with options

In order to obtain a client id and client secret, please contact Valamis Support.

const valamis = new ValamisApiClient(
  {
    clientId: 'your-client-id',
    clientSecret: 'your-client-secret',
    grantType: 'read'
  },
  {
    baseURL: 'https://example.valamis.io'
  }
);

Resources