google-api-oauth-phonegap
google-api-oauth-phonegap copied to clipboard
Retrieving data
Hi,
I would like to thank the author for his huge contribution to the community - Thanks. In addition, I would like to know how can I retrieve data from Google after the login (Username, Email etc...)
Regards, Yair
Sorry for the delay, I can not helped is more, but you can recover through the object "response" function "done"
googleapi.getToken({
client_id: GooglePlus.client_id,
client_secret: GooglePlus.client_secret
}).then(function(data) {
return googleapi.userInfo({ access_token: data.access_token });
}).done(function(response) {
console.log(response.name);
});