@itfin/rest
v1.0.3
Published
ITFin REST API client for Browser and Node.js
Downloads
1
Maintainers
Readme
ITFin REST
ITFin REST API client for Browser and Node.js
Usage
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)