πBasic Usage
Complete guide on how to use buymeacoffee.js to your project.
{
"token":"access_token_here"
}const BMC = require('buymeacoffee.js'); // add BMC package
const access = require('./coffee.json'); // load your token
const coffee = new BMC(access.token); // add your token here
// retrieve supporters data
coffee.Supporters().then(data => console.log(data));
// retrieve subscribers data
coffee.Subscriptions().then(data => console.log(data));
// retrieve extras data
coffee.Extras().then(data => console.log(data));coffee.Supporters().then(data => {
data = data.data[0].supporter_name;
console.log(data);
});Last updated