标签: c# asp.net email gmail
我在当前的应用程序中有一个场景,我想要获取用户的Gmail ID。 有没有人能告诉我C#中的代码片段的方式?
注意:我正在使用C#在asp.net中开发基于Web的应用程序。
答案 0 :(得分:12)
使用google contacts api那里有C#样本。
答案 1 :(得分:3)
您可以使用Google Accounts API。
You can find an example here.
答案 2 :(得分:3)
查看开源.Net库gmailapi。GmailAgent有一个GetContacts方法,用于检索所有联系人。