适用于Google People API的.NET客户端

时间:2014-05-20 12:07:35

标签: api google-api google-oauth google-api-dotnet-client

我在这里没有看到Google People API的.NET客户端。

https://code.google.com/p/google-api-dotnet-client/wiki/APIs

你知道吗?

我需要使用OAuth2从Google获取用户的全名,电子邮件地址,性别和出生日期。我可以使用原始HTTP方式,但为了安全起见,我想使用Google提供的客户端API。

更新

Hurray to hand-plumbing

enter image description here

2 个答案:

答案 0 :(得分:1)

答案 1 :(得分:1)

可以在NuGet找到Google .net客户端库,加号包在Google.Apis.Plus.v1 Client Library

PM> Install-Package Google.Apis.Plus.v1

我很确定它需要最新版本的Nugget才能获得它。

但我认为你会遇到一个小问题。并非所有您所关注的信息都在API中公开。例如,性别和出生日期。

您可以在此处People.Get进行尝试。滚动到底部:授权它然后在userId中输入“我”,它将显示API可以获取您的数据。