alerts-api
Version:
Donation Alerts API wrapper for Node.JS which supports ES6 promises [BETA]
7 lines (6 loc) • 388 B
JavaScript
const AlertsAPI = require('alerts-api')
const donationAlerts = new AlertsAPI({ access_token: '25t46...jMY_' })
async function findVityaSchel() {
let donations = await donationAlerts.searchWithinMessage('vityaschel@utidteam.com')
console.log('Best people are', donations.filter(don => don.amount >= 10 && don.currency === 'RUB').map(don => don.username).join(', '))
} findVityaSchel()