fmt-api-client

Client for FMT API written in Typescript

Usage no npm install needed!

<script type="module">
  import fmtApiClient from 'https://cdn.skypack.dev/fmt-api-client';
</script>

README

fmt-api-client

A small client library for FMT APIs written in Typescript.

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);
});