如何从Google GAIA ID查找用户信息? [英] How to look up user information from Google GAIA ID?
问题描述
我一直在为Google的Takeout服务开发Hangouts.json解析器,该解析器从json文件中获取所有对话,附件和其他信息,并填充所有内容.我已经完成了所有工作,但是json文件提供给谁的唯一信息是谁发送了GAIA ID,我能够弄清楚的是Google在其服务之间使用的唯一ID.问题是我不知道如何查找有关用户的任何其他信息,例如他们使用的姓名或电子邮件.
I've been working on a Hangouts.json parser for Google's Takeout service that takes all of the conversations, attachments, and miscellaneous information from the json file and populates a database with everything. I've finished everything but the only information the json file provides for who sent what is a GAIA ID that I've been able to figure out is the unique ID Google uses between their services. The problem is I don't know how to look up any other information about the user such as the name they identify with or their email.
我知道大多数信息都是公开可用的,因为您可以获取GAIA ID并将其放入类似https://plus.google.com/u/0/#####################/about
的URL中,其中#是GAIA ID.此页面将公开显示其屏幕名称.如果电子邮件地址未知,则可以通过以下方式推断出相同的含义:reply-#####################@profiles.google.com
也可以用来与他们联系.
I know most of the information is publicly available as you can take the GAIA ID and put it into a URL like: https://plus.google.com/u/0/#####################/about
where the #'s are the GAIA ID. This page will reveal their screen name publicly. When a email address is unknown the same thing can be inferred by using: reply-#####################@profiles.google.com
where this will also be able to be used to contact them.
理想情况下,我希望能够查找用户的屏幕名称,而不必至少解析该公共Google+信息页,但是发送一封真实的电子邮件也非常有用.因此,理想情况下,我希望使用API或其他资源从GAIA ID中查找屏幕名称和/或电子邮件信息.
Ideally I'd like to be able to look up a user's screen name without having to parse that public Google+ page at least but a true email would be great as well. So ideally I'd like an API or other resource to look up screen names and / or email info from a GAIA ID.
推荐答案
重要更新
2019年3月:这个答案仍在投票中,但是Google撤回了Google Plus API.
March 2019: This answer is still getting up votes, however Google are withdrawing / have withdrawn the Google Plus API.
您将需要替代解决方案,因为该解决方案将不再适用.
You will need an alternative solution as this will no longer apply.
原始回复
使用Google Plus API: https://developers.google.com/+/api/
Use the Google Plus API: https://developers.google.com/+/api/
我没有专门针对环聊进行测试(我不知道有一个Hongouts API!),但是它会返回给定其他API的ID的详细信息.
I've not tested specifically with Hangouts (I never knew there was a Hongouts API!) but it returns details given IDs from other APIs.
您可以在此处进行测试: https ://developers.google.com/apis-explorer/#p/plus/v1/plus.people.get 来看看会得到什么.
You can test it out here: https://developers.google.com/apis-explorer/#p/plus/v1/plus.people.get to see what you'll get.
这篇关于如何从Google GAIA ID查找用户信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!