alerts-api
Version:
Donation Alerts API wrapper for Node.JS which supports ES6 promises [BETA]
7 lines (6 loc) • 302 B
JavaScript
const AlertsAPI = require('alerts-api')
const donationAlerts = new AlertsAPI({ access_token: '25t46...jMY_' })
async function collectUserProfile() {
let user = await donationAlerts.getUser()
console.log(`${user.name} speaks in ${user.language} and has email ${user.email}!`)
} collectUserProfile()