2.0.0 • Published 11 months ago
@web-ninja/gumroad-node-sdk v2.0.0
gumroad-node-sdk
A Gumroad Node.js API client with Typescript support, implementing the official Gumroad API (https://app.gumroad.com/api)
Installation
To install the Gumroad Node.js SDK, run the following command:
npm install gumroad-node-sdk
Usage
To use the Gumroad Node.js SDK, you need to create an instance of the GumroadApiClient
class with your Gumroad access token. Here's an example of how to use the SDK:
import { GumroadApiClient } from "gumroad-node-sdk";
const gumroadClient = new GumroadApiClient("your-access-token");
gumroadClient.getProducts().then(productsResponse => {
console.log(productsResponse.success);
console.log(productsResponse.products);
});