Reputation: 33850
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
Upvotes: 0
Views: 2234
Reputation: 116868
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.
Upvotes: 1
Reputation: 3512
All the APIs are available here: https://developers.google.com/api-client-library/dotnet/apis/
I'm pretty sure that one of the following APIs will make your life easier: https://developers.google.com/api-client-library/dotnet/apis/plus/v1 or https://developers.google.com/api-client-library/dotnet/apis/oauth2/v2
Upvotes: 1