fmt-api-client
v1.0.3
Published
Client for FMT API written in Typescript
Downloads
51
Maintainers
Readme
Features
- Tiny size
- Built-in Typescript support
- Easly create API requests
Installation
npm i fmt-api-client
Or
yarn add fmt-api-client
Usage
Import fmt-api-client
module in your project and initialize it optionally with your baseUrl, token & locale.
import FMT from "fmt-api-client";
const FmtClient = new FMT({ token: "token", locale: "en" });
FmtClient.getOwners().then((data) => {
console.log(data);
});
FmtClient.getTrucks().then((data) => {
console.log(data);
});