Solved

MVC  and Google Contacts API, how to create a controller that will call a view that will display all my contact from my gmail account.

Posted on 2014-03-20
3
1,045 Views
Last Modified: 2014-11-12
I would like to see how I can create a controller that call a view from a google API. Does anyone as any tips. I'm guessing my view will have a for loop...

Found this online but not sure it is what I'm looking....

http://stackoverflow.com/questions/5860749/mvc-3-and-google-contacts-api
0
Comment
Question by:yguyon28
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Author Comment

by:yguyon28
ID: 39944237
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 39945347
First I have not done much as far as programming in ASP.Net MVC, That said have you attempted to create a Console application and get the Google contact to make sure the code works and can retrieve the needed information?

Once you have the code working the way you want then you can integrate it with your application you are working on, into the Model. Then you should be able to create a View from the Model and return that View from the controller.
0
 
LVL 25

Accepted Solution

by:
apeter earned 500 total points
ID: 39950020
Use the "Controllder" to talk to google api and get the contact details and populate the contact "Model" . Use this model and populate the View.

The controller mostly return "View" is just to render data.
0

Featured Post

 Database Backup and Recovery Best Practices

Join Percona’s, Architect, Manjot Singh as he presents Database Backup and Recovery Best Practices (with a Focus on MySQL) on Thursday, July 27, 2017 at 11:00 am PDT / 2:00 pm EDT (UTC-7). In the case of a failure, do you know how long it will take to restore your database?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many add-ons for Google docs, slides and sheets that can be extremely helpful in keeping your files organized and simple to use. Add-ons are installed into your Google docs, slides or sheets through Google's Add-On Store. One of my favorit…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial demonstrates the importance of annotations in Google Analytics and how they should be used to document changes made to a site, Google updates (Ex: Panda & Penguin), marketing campaigns, and any other events that might have contri…
This Micro Tutorial will demonstrate the easy use of Gmail embedding images in your email so the recipient of your email can view them in context.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question