
const DapiClient = require('dapi-client');
const dapi = new DapiClient();
const dapId = '9ae7bb6e437218be36b04843f63a135491c8';
// fetch user and DashPay user profile
const bob = dapi.getUserByName('bob');
const bobProfile = dapi.fetchDapObjects(dapId, 'user', {
where: { data: { userId: bob.id } }
});
console.log(bobProfile.status);
// >> "Super excited to be using DashPay!!"
