UNPKG

mangopay4-nodejs-sdk

Version:

Mangopay Node.js SDK

29 lines (26 loc) • 626 B
/** * Examples of reading users data */ const mangopay = require('../index'); const api = new mangopay({ clientId: 'your-client-id', clientApiKey: 'your-client-api-key' }); api.Users.getBankAccounts(108379078, { parameters: { per_page: 100, page: 1, active: false } }).then(function(data){ console.log("Should be zero: " + data.length); }); api.Users.getBankAccounts(108379078, { parameters: { per_page: 100, page: 1, active: true } }).then(function(data){ console.log("Should be more than one: " + data.length); });