google plus circle in appengine

48 views
Skip to first unread message

kcc pac

unread,
Sep 24, 2015, 8:41:41 PM9/24/15
to Google App Engine
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

Patrice (Cloud Platform Support)

unread,
Sep 25, 2015, 1:28:55 PM9/25/15
to Google App Engine
Hi,

I'm pretty sure you can actually get the email from an ID. As explained here, a "people:get" gives you all the info shown here, which does contain emails. Maybe if the user didn't give permission for the email scope that won't work?

Cheers

kcc pac

unread,
Sep 25, 2015, 2:56:31 PM9/25/15
to Google App Engine
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

Patrice (Cloud Platform Support)

unread,
Sep 25, 2015, 3:28:17 PM9/25/15
to Google App Engine
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" 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

kcc pac

unread,
Sep 25, 2015, 3:55:27 PM9/25/15
to Google App Engine
I use exactly the calls you suggested. But, the email field is null. 

Colin

Patrice (Cloud Platform Support)

unread,
Sep 25, 2015, 4:36:14 PM9/25/15
to Google App Engine
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!

kcc pac

unread,
Sep 25, 2015, 5:27:53 PM9/25/15
to Google App Engine
Patrice,

This is a design issue to me. From my investigation in the issue, it is deliberately not to expose email address among google plus circle members (due to the potential spam issues). The aim is to force to use other means (activities and post in Google Plus platform) for communication purpose. But, shouldn't the user give his consent when joining the circle? And again, that is the reason why I ask if there are other means to communicate privately between circle owner and its members..


Colin

Patrice (Cloud Platform Support)

unread,
Sep 25, 2015, 5:38:46 PM9/25/15
to Google App Engine
Hi Colin,

So, I think you have it right here. Indeed, this is to obscure the email of the user.

In any case, if User B gives access to his email to User A, it makes sense that an application requesting the email of User B (even if on behalf of User A), doesn't get that field.

I do believe that activities and posts will be your only way to communicate. Maybe someone else who is active on the group might have suggestions though.

Cheers

Alex Martelli

unread,
Sep 26, 2015, 1:31:17 AM9/26/15
to google-a...@googlegroups.com
On Fri, Sep 25, 2015 at 2:27 PM, kcc pac <kcc...@gmail.com> wrote:
Patrice,

This is a design issue to me. From my investigation in the issue, it is deliberately not to expose email address among google plus circle members (due to the potential spam issues). The aim is to force to use other means (activities and post in Google Plus platform) for communication purpose. But, shouldn't the user give his consent when joining the circle?

That's just not how Google+ works -- you can put any other G+ member in one or more of your circles: he or she gets *informed* of the fact (and offered a chance to do the same, with a reminder that's totally optional), but, not asked for permission.

Alex
 

--
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 google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
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/49e1dd6b-e0a5-47a2-a986-1007df79e23a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages