1.1.0 • Published 8 months ago

@rantalainen/procountor-api-client v1.1.0

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

procountor-api-client

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

Installation

Add to project's package.json:

npm install @rantalainen/procountor-api-client

Import to NodeJS project

const { ProcountorApiClient } = require('@rantalainen/procountor-api-client');

Import to TypeScript project

import { ProcountorApiClient } from '@rantalainen/procountor-api-client';

Setup client with options

In order to obtain an API key, please contact Procountor Support. An API key is needed to access all API functions.

const procountor = new ProcountorApiClient(
  {
    clientId: 'client_id',
    clientSecret: 'client_secret',
    apiKey: 'api_key'
  },
  {
    baseURL: 'https://api.procountor.com/api'
  }
);

Available methods can be found in the API documentation.

Resources

Changelog

  • 1.0.0 First release
1.1.0

8 months ago

1.0.0

1 year ago