How to get Email of friend using google+ api?

后端 未结 3 995
旧巷少年郎
旧巷少年郎 2021-01-26 04:49

Im creating an application to login in Google+ and get friends emails. Im authenticating succesfully and get token back , but when i fetch friends list , the user class of any s

3条回答
  •  醉话见心
    2021-01-26 05:18

    You could also use the Contacts v3 API to get friend's email addresses. You can cross map this to Google+ contacts by looking at the gContact:website element for the contact that comes back in the XML response:

    
    

    In that element's href attribute, 1234567890 is the person identifier that would match the id field of the relevant person resource from people.list of the Google+ API.

    Note that the profile link is not guaranteed to come back for a contact entry. This occurs when the contact has not been linked to a Google+ profile.

提交回复
热议问题