java - Fetch Google+ emails from Google People API -


i'm doing this.

    listconnectionsresponse r = peopleservice.people().connections()             .list("people/me")             .setpagesize(500)             // specify fields returned             .setrequestmaskincludefield("person.names,person.emailaddresses")             .execute(); 

it returns list of connections emails have added myself. not information gathered google+ profiles. possible fetch also? tried fetching individual resourcename, no email there.

    person p = peopleservice.people().get("people/xxxxx").execute(); 

the google people api fetch emails google+ profiles, public e-mails. if e-mail shows when view profile when not signed in, should show in response.

however, e-mails not public shared account (e-mails can see if signed in) not visible through google people api privacy reasons.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -