1.0.3 • Published 2 years ago

gumnode v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Gumnode

Gumnode is a Node.js API wrapper for Gumroad.

It's promise-based, slim, and supports Gumroad's latest API endpoints.

Submit an Issue if you find an outdated endpoint or find a new one you want Gumnode to support.

Install

npm install gumnode

or

yarn install gumnode

Usage

const Gumnode = require("gumnode");

const api = new Gumnode({
  access_token: "YOUR_ACCESS_TOKEN",
});

api
  .getProduct({ product_id: "PRODUCT_ID" })
  .then((response) => console.log("Found product:", response))
  .catch((response) => console.log("Error:", response.message));

Todo

  • Add docs to functions
  • Add tests