@stylusapparel/shipstation-api-node
Version:
Unofficial Shipstation API Wrapper for Node.js
20 lines (17 loc) • 623 B
JavaScript
;
const __httpClient = require("./lib/http");
const __orders = require("./modules/orders");
const __shipments = require("./modules/shipments");
const __carriers = require("./modules/carriers");
const __warehouses = require("./modules/warehouses");
module.exports.createClient = (__apiKey, __apiSecret, __options = {}) => {
const __http = __httpClient(__apiKey, __apiSecret, __options);
const __this = {
client: __http,
orders: __orders(__http),
shipments: __shipments(__http),
carriers: __carriers(__http),
warehouses: __warehouses(__http),
};
return __this;
};