I'm trying to find my way around Google's People API. So far, I've been able to load the contact groups using
try{
contact_groups = await new Promise(function(resolve, reject){
people.contactGroups.list({
auth: oauth2Client
}, function(error, response){
if(!error){
resolve(response);
}else{
reject(error);
}
});
});
}catch(error){
throw error;
};
where people
is the instantiated google-api-nodejs-client
people(v1)
object.
I'm trying to get a profile picture for the user's contacts. How do I load the public profile picture or a placeholder for each of the contacts?