This library provides many of the features of the official API of RutterAPI. It is easy to use, and fully async. It is intended to be used on the server (it is not a client module).
Official API: DOCS
Typescript definitions are dynamically generated at build time and availble in dist, or run:
yarn generate-types
.
yarn install rutter-client
import { RutterClient } from "rutter-client";
const client = new RutterClient({
configs: {
clientId: 'clientId',
secretId: 'secretId',
}});
// fetch active connections
const { connections } = await client.connection.fetchActive();
// fetch orders
const { orders } = await client.order.fetchAll({ access_token: "access_token"});
Work in progress, feel free to contribute 😄