UNPKG

mangopay4-nodejs-sdk

Version:

Mangopay Node.js SDK

16 lines (13 loc) • 321 B
/** * Examples of getting a user's emoney */ const mangopay = require('../index'); const api = new mangopay({ clientId: 'your-client-id', clientApiKey: 'your-client-api-key' }); const USER_ID = '1151091'; const year = 2019; api.Users.getEMoney(USER_ID, year).then(function (data) { console.log(data); });