buymeacoffee
v1.2.3
Published
A simple Buy Me A Coffee API Client
Downloads
5
Readme
Buy Me A Coffee NodeJS Client
Examples
Set up a client
import { BuyMeACoffee } from "buymeacoffee";
const client = new BuyMeACoffee("ACCOUNT-TOKEN");Subscriptions
client.Subscriptions().then(data => {
console.log(data)
})Supporters
client.Supporters().then(data => {
console.log(data)
})Extras
client.Extras().then(data => {
console.log(data)
})How to get account token
After logging in to https://developers.buymeacoffee.com/login, click on the create new token button and create a token by giving read-only permission. You can use the given token here.
Sample outputs
You can see sample json outputs at https://developers.buymeacoffee.com/#/
