Question

i have a asp.net mvc webpage that queries a SQL server database for contact info. I have now migrated all of this contact info into gmail.

is there anyway i can replace the model section of the asp.net mvc site to query my gmail contact info ?

is there an example code to access this via some API?

Was it helpful?

Solution

Gmail has a contacts API in various languages, including dot net. Here is a link to their example code for retrieving all your contacts.

http://code.google.com/apis/contacts/docs/2.0/developers_guide_dotnet.html#retrieving_without_query

OTHER TIPS

The included link is a nice description of using mechanize to scrape gmail. There are lots of libraries (in different languages) that can scrape gmail contacts... Unfortunately, they all suffer the same weakness: they break when google changes their pages.

mechanize and gmail

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top