Hi Colin, Hmm, I see. I am starting to think this is expected behavior then (not extremely familiar with the Google+ API). The way I understand it from the docs explaining what you get in "emails[]" from a person resource, you need to have THAT person grant the email scope to your application as well. When you think about it, it makes sense.
If user A granted your application the scope to get their email, why should you get access to the email of user B, that's in his circle, if user B didn't explicitly grant you access to HIS email. The documents could be clearer about this, but I do believe it makes sense. Don't you? Cheers! On Friday, September 25, 2015 at 3:55:27 PM UTC-4, kcc pac wrote: > > I use exactly the calls you suggested. But, the email field is null. > > Colin > > On Friday, September 25, 2015 at 3:28:17 PM UTC-4, Patrice (Cloud Platform > Support) wrote: >> >> Hi again, >> >> I did misunderstand your request, apologies for that. >> >> In a single call, it will not be possible, but I believe that you can do >> a "people:list >> <https://developers.google.com/+/web/api/rest/latest/people/list#try-it>" >> with the "collection" set to visible. That will give you all users in >> someone's circle. From there, you can do single calls to "people:get" to >> get their email. >> >> Cheers >> >> On Friday, September 25, 2015 at 2:56:31 PM UTC-4, kcc pac wrote: >>> >>> Patrice, >>> >>> Thank you for your reply. >>> >>> Yes, the people:get call is able to retrieve email information for the >>> user (after google login) but not his google circle members. From my >>> googling, it says that the email address is not disclosed across his google >>> plus circle members. Just wonder how gmail can retrieve the email address >>> after login through Google plus. >>> >>> Colin >>> >>> On Friday, September 25, 2015 at 1:28:55 PM UTC-4, Patrice (Cloud >>> Platform Support) wrote: >>>> >>>> Hi, >>>> >>>> I'm pretty sure you can actually get the email from an ID. As explained >>>> here <https://developers.google.com/+/web/api/rest/latest/people/get>, >>>> a "people:get" gives you all the info shown here >>>> <https://developers.google.com/+/web/api/rest/latest/people#resource>, >>>> which does contain emails. Maybe if the user didn't give permission for >>>> the >>>> email scope that won't work? >>>> >>>> Cheers >>>> >>>> On Thursday, September 24, 2015 at 8:41:41 PM UTC-4, kcc pac wrote: >>>>> >>>>> hi all, >>>>> >>>>> how can I email to members in google plus circle using the member >>>>> google+ Id? or other ways to info the members.. Apparently, the email can >>>>> not be retrieved by using google plus people API. >>>>> >>>>> Thanks. >>>>> >>>>> Colin >>>>> >>>> -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/4bc2821a-7a99-414f-bf85-db53b02202b8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
