1.2.4 • Published 2 years ago
rutter-client v1.2.4
RutterAPI NodeJS Client (Unofficial)
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
TS Support
Typescript definitions are dynamically generated at build time and availble in dist, or run:
yarn generate-types
.
Installation
yarn install rutter-client
Quick Start
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"});
Supported API(s)
Tokens
Connections
Orders
Fulfillments
Products
Other API(s)
Work in progress, feel free to contribute 😄