问题
I have a scenario in my current application where I want to fetch the Gmail id's of my users. Could anyone tell me the way with piece of code in C#?
Note: I am developing a web-base application in asp.net with C#.
回答1:
Use the google contacts api there are C# sample there.
回答2:
You can use the Google Accounts API.
You can find an example here.
回答3:
Take a look at the open source .Net library gmailapi.The GmailAgent has a GetContacts method for retrieving all the contacts.
来源:https://stackoverflow.com/questions/999766/how-to-fetch-gmail-contacts