I want to send notification to GMail contact list of user. I am using this Google API code to fetch data:
var request = gapi.client.plus.people.list({
'userId': 'me',
'collection': 'visible'
});
request.execute(function(resp) {
console.log('Num people visible:' + resp.totalItems);
console.log('JSON :: ' +JSON.stringify(resp) );
});
I got all information in this form, except email of the user:
{
"kind":"plus#person",
"etag":"\"L2Xbn8bDuSErT6QA3PEQiwYKQxM/Cq8-fpfOKA7mSHBXOGvh5cXBraw\"",
"objectType":"person",
"id":"109949183447768127130",
"displayName":"Abhishek Singh",
"url":"https://plus.google.com/+AbhishekSinghLKO",
"image":{"url":"https://lh5.googleusercontent.com/-usIXgWialjY/AAAAAAAAAAI/AAAAAAAAAZ4/9G29gXNfwu0/photo.jpg?sz=50"}
},
Is there any way to find all email ID corresponding to the data which I got from JSON?