Hi,
Does anybody knows how to get user info(first name, last name, full name, email) from an google account using gData?
I must mention that I am able to perform the auth(I get the auth token from an android device - sent it to my server - auth using gData), but I don't know what Classes/calls to perform further in order to get the user info of the account.
Here is what I did:
ContactsService contactsService = new ContactsService("...");
contactsService.setUserToken(auth_token);
ContactFeed feed = null;
try {
}
catch (IOException e) {
e.printStackTrace();
return CONST.GOOGLE_AUTH_INVALID_TOKEN;
}
catch (ServiceException e) {
e.printStackTrace();
return CONST.GOOGLE_AUTH_INVALID_TOKEN;
}
catch (NullPointerException e) {
e.printStackTrace();
return CONST.GOOGLE_AUTH_INVALID_TOKEN;
}
Thanks,
Alex.