Skip to content

rantalainen/procountor-api-client

Repository files navigation

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