1.2.3 • Published 1 year ago
buymeacoffee
Licence
ISC
Version
1.2.3
Deps
1
Size
2 kB
Vulns
0
Weekly
0
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/#/