@rantalainen/procountor-api-client
TypeScript icon, indicating that this package has built-in type declarations

1.6.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @rantalainen/procountor-api-client

Weekly Downloads

2

Version

1.6.0

License

MIT

Unpacked Size

601 kB

Total Files

11

Last publish

Collaborators

  • markus.peltola
  • tonitakala
  • kaisakassila
  • henripero-rantalainen
  • hannajussila
  • rantalainen-svc
  • puja.heino
  • jenni.breite
  • jockuml
  • georgypk