1.2.3 • Published 7 months ago
buymeacoffee v1.2.3
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/#/