@tolt/api
v0.5.0
Published
TypeScript SDK for the Tolt Public API
Readme
@tolt/api
TypeScript SDK for the Tolt public API (v2). Generated from our OpenAPI spec with Fern; do not edit by hand.
Install
npm install @tolt/apiUsage
import { ToltApiClient } from "@tolt/api";
const client = new ToltApiClient({
baseUrl: "https://api.tolt.com",
token: process.env.TOLT_API_KEY!, // your Tolt API key
});
const transactions = await client.transactions.listTransactions();
const overview = await client.reports.overview();
const clicks = await client.clicks.listClicks();Sub-clients cover the whole API: transactions, commissions, customers, partners, programs, links, promotionCodes, groups, flows, clicks, reports. Every path, request, and response is typed from the spec.
Build
npm install # runs the build via the prepare script
npm run build # -> dist/Regenerating
This package is generated. Regenerate it from the OpenAPI spec in the tolt-sdks-v2 Fern workspace (fern generate --local).
