@tolt/api 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,9 +18,9 @@ const client = new ToltApiClient({
|
|
|
18
18
|
token: process.env.TOLT_API_KEY!, // your Tolt API key
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
const transactions = await client.transactions.
|
|
21
|
+
const transactions = await client.transactions.list();
|
|
22
22
|
const overview = await client.reports.overview();
|
|
23
|
-
const clicks = await client.clicks.
|
|
23
|
+
const clicks = await client.clicks.list();
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
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.
|