@itfin/rest

1.0.3 • Public • Published

ITFin REST

ITFin REST API client for Browser and Node.js

Usage

Node

Install with npm install @itfin/rest --save

const { Application } = require("@itfin/rest");
// or: import { Application } from '@itfin/rest';

Examples

More examples of usage you can find in examples folder.

Client Options

You can set the APIs' baseUrl and modify some behaviors (e.g. request timeout etc.) by passing a clientOptions object to the Application constructor.

const secretKey = '...';
const secretToken = '...';
const clientOptions = {
  baseUrl: 'https://app.itfin.io',
  requestTimeout: 15000,
  requestsPerSecond: 2,
  debug: false
}

const app = new Application(secretKey, secretToken, clientOptions)

LICENSE

MIT

Package Sidebar

Install

npm i @itfin/rest

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

23.3 kB

Total Files

24

Last publish

Collaborators

  • esvit