Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noahbuscher/gumnode
Node client for Gumroad API
https://github.com/noahbuscher/gumnode
api client gumroad javascript nodejs wrapper
Last synced: about 2 months ago
JSON representation
Node client for Gumroad API
- Host: GitHub
- URL: https://github.com/noahbuscher/gumnode
- Owner: noahbuscher
- License: mit
- Created: 2021-07-16T23:31:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-12T07:16:24.000Z (almost 3 years ago)
- Last Synced: 2024-10-14T11:44:39.053Z (3 months ago)
- Topics: api, client, gumroad, javascript, nodejs, wrapper
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gumnode
Gumnode is a Node.js API wrapper for [Gumroad](https://gumroad.com).
It's promise-based, slim, and supports Gumroad's [latest API endpoints](https://app.gumroad.com/api).
> Submit an [Issue](https://github.com/noahbuscher/gumnode/issues) if you find an outdated endpoint or find a new one you want Gumnode to support.
## Install
```
npm install gumnodeor
yarn install gumnode
```## Usage
```javascript
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