unomi.profile.get(<string | number>);
{
success: <boolean>,
status: <number>,
data: <object>
}
async function greetProfile(profileID) {
try {
const profile = await unomi.profile.get(profileID);
console.log(`Hello ${profile.data.firstName}!`);
} catch (err) {
console.error("An error occurred while getting the profile " + profileID);
console.error(err);
}
}