用于 Google People API 的 .NET 客户端 [英] .NET client for the Google People API
问题描述
我在这里没有看到 Google People API 的 .NET 客户端.
PM>安装包 Google.Apis.Plus.v1
我很确定它需要最新版本的 Nugget 才能获得它.
但我认为你会遇到一个小问题.并非您所追求的所有信息都在 API 中公开.例如性别和出生日期.
您可以在此处People.Get 尝试一下.滚动到底部:授权然后在 userId 中输入我",它将显示 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
Do you know of any?
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.
Update
Hurray to hand-plumbing
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
I'm pretty sure it requires the latest version of Nugget to get it.
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.
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.
这篇关于用于 Google People API 的 .NET 客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!