Hello Friends, I am working on a module, where my job is I have to fetch all contact list of Gmail Account in Asp.net. I have tried the code, but it is not working it shows error "Execution of authentication request returned the unexpected result: 404." I have attached my code file. Please Help me in above.
You should use Google's Gmail API. First off you need to implement a Server-Side Authorization Then you can get userdata (if allowed) with "getProfile" You can read about it here: https://developers.google.com/gmail/api/v1/reference/users/getProfile Code (markup): And here is how to do the Authorization: https://developers.google.com/gmail/api/auth/web-server Code (markup):
To get all your Gmail contacts you have to first create a project in the Google Console. Now in you C# page you have to communicate with it. For this first you will have to authenticate a user (whose contacts your google project will fetch), authentication is done with OAUTH 2.0. Once authentication is done, you can implement Google Contacts API and fetch the contacts. See Google Contacts API code here.