google-api-oauth-phonegap icon indicating copy to clipboard operation
google-api-oauth-phonegap copied to clipboard

Retrieving data

Open YairHadari opened this issue 10 years ago • 1 comments

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

YairHadari avatar Jul 14 '14 05:07 YairHadari

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); });

jorgejeferson avatar Sep 24 '14 19:09 jorgejeferson