对于谷歌API的人.NET客户端 [英] .NET client for the Google People API

查看:127
本文介绍了对于谷歌API的人.NET客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有看到一个.NET客户端为这里的人们谷歌API。

I do not see a .NET client for the Google People API here.

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

你知道对否?

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

I need to get the user's full name, email address, gender and date of birth from Google using OAuth2. I could use it the raw HTTP way, but just to be safe, I want to use a Google provided client API.

更新

华友世纪以手工管道

推荐答案

谷歌的.NET客户端库可以在的NuGet <发现/ A>,加包是在这里 Google.Apis.Plus.v1客户端库

The Google .net client Library can be found on NuGet, the plus package is here Google.Apis.Plus.v1 Client Library

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

我是pretty确保它需要最新版本的金块得到它。

I'm pretty sure it requires the latest version of Nugget to get it.

但我认为你将有一个小问题。并非所有的信息,你是在API中暴露之后。性别和出生例如日期。

But I think you are going to have a small problem. Not all of the information you are after is exposed in the API. Sex and date of birth for example.

您可以在这里 People.Get 的尝试。滚动至底部:授权其再在用户id输入我,它会显示哪些API,可以让您的数据。

You can try it here People.Get. Scroll to the bottom: Authorize it then in userId enter "me" and it will show what the API can get of your data.

这篇关于对于谷歌API的人.NET客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆