Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fetch Gmail contacts? [closed]

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#.

like image 899
Gaurav Arora Avatar asked Jun 16 '09 05:06

Gaurav Arora


People also ask

Can I recover deleted Gmail contacts?

Recover deleted contactsIf you deleted a contact in the last 30 days, you can move it out of your Trash. Tip: Contacts deleted from your “Other contacts” won't show in Trash. You can recover them if you undo all the changes within the past 30 days.

Why did all my Gmail contacts disappear?

These issues often take place when you try to upload contacts to Google either because of Internet failure, you accidentally deleted them or while using any third-party application to back up your data.

Is there a way to recover deleted contacts from Gmail more than 30 days?

1. Open Google Contacts on your browser and log in with the same Google Account linked to the smartphone from which you deleted a contact accidentally. 2. Tap on the gear icon found on the top right corner and click on 'Undo changes' to start the restoration process.


3 Answers

Use the google contacts api there are C# sample there.

like image 59
Sam Saffron Avatar answered Sep 20 '22 14:09

Sam Saffron


You can use the Google Accounts API.

You can find an example here.

like image 21
Kirtan Avatar answered Sep 22 '22 14:09

Kirtan


Take a look at the open source .Net library gmailapi.The GmailAgent has a GetContacts method for retrieving all the contacts.

like image 44
user121803 Avatar answered Sep 19 '22 14:09

user121803