Everything is already set up! Simply replace the [username]
field when you call the getData
function!
Example:
getData('NaflyyDev');
Output:
{
karma: 653,
firstName: 'Naflyy',
lastName: 'Insion',
bio: 'Hey There XD',
isVerified: true,
timeCreated: '2020-09-09T12:47:49.218Z',
isLoggedIn: false,
organization: { name: 'InsionDev' },
subscription: { planId: 'hacker2' },
roles: [ { name: 'self learner' }, { name: 'explorer' } ]
}