How to Fetch Gmail contact List From your gmail account

Hi Friends,

             Here I am posting  a code to fetch or get gmail contact in our application. For this we need to include some gmail APIs which required while in importing the contact list.
Before code we have to download APIs from HERE .After clicking on this you will get a page like this:

You should include following name spaces
using Google.GData.Client;
using Google.Contacts;
using Google.GData.Extensions;
using System.Collections.Generic;

Then you can use this method...

private List<string> GetContactList(string email, string pwd)
    {

        List<string> lstContacts = new List<string>();

        // Here required your gmail id and password.
        RequestSettings rsLoginInfo = new RequestSettings("", email, pwd);
        rsLoginInfo.AutoPaging = true;
        ContactsRequest cRequest = new ContactsRequest(rsLoginInfo);

        // get contacts list
        Feed<Contact> feedContacts = cRequest.GetContacts();

        // looping the feedcontact entries
        foreach (Contact gmailAddresses in feedContacts.Entries)
        {
            // Looping to read  email addresses
            foreach (EMail emailId in gmailAddresses.Emails)
            {
                lstContacts.Add(emailId.Address);
            }
        }
        
        return lstContacts;      
    }

Hope this will help you ...
Regards,
Rajesh

0 comments:

Cloud Computing on Microsoft Technologies

Cloud computing delivers the ability to provision resources on demand to your users. Cloud computing is enabling a major transformation in which you can turn your datacenter into an IT-as-a-Service platform. This means you can deliver applications to your end users faster than ever, without investing in new infrastructure, training new personnel, or licensing new software. Cloud computing also helps your organization compete in new markets and communicate with customers in new ways. You can drive down the costs of doing business and increase your ability to adapt to changing market conditions.

Because cloud computing changes the way your organization consumes IT, you can change the role of IT in your organization and the way your team thinks about and delivers business success.

Whether in your datacenter, with a service provider, or from Microsoft’s datacenters, Microsoft provides the choice, flexibility, and control to adopt cloud computing in whichever way best meets your unique business needs; whether that be through a private cloud, a public cloud, or a combination of the two.

Microsoft provides the following cloud computing offerings:

Private Cloud

Microsoft private cloud solutions give you the flexibility and control to harness the power of the cloud on your terms. A Microsoft private cloud provides end to end service management giving you deep insight about your applications and workloads so you focus more attention on delivering business value. And with your choice of a hosted, pre-configured, or custom offering, you have the power to find the private cloud solution that fits your unique business needs.



Public Cloud

Windows Azure is the cloud platform that empowers you to develop and run applications with unbounded scalability and ease-of-use. With this flexible platform you can easily scale up or down to meet the demands of your business. With the pay-for-use business model, you don’t waste money on services you won’t use. And Windows Azure allows your developers to develop and run applications quickly, while leveraging current skills to develop applications with .NET, PHP, or Java.

Benefits

The future of the cloud is going to be a hybrid combination of public and private cloud, not one or the other. There will be times when you want to run a workload in a private cloud, then move it up to a public cloud, and later move it back again to your private cloud. We see a Microsoft private cloud as the first step towards building a cloud that allows you to go into the public cloud, which is what we call Windows Azure. With Microsoft, our cloud offerings are designed so that your private cloud and public cloud work together.

Cloud computing on your terms

With Microsoft cloud solutions, you remain in full control whether it is in your datacenter, a partner datacenter, or Microsoft’s datacenters. Only with Microsoft cloud solutions do you get:


   => A common set of management tools.
   => The ability to see all the applications in your traditional, public, and private cloud environments from a single console.
    =>A common set of identity tools.
    =>When users log in, they get access to all the traditional, private, and public cloud services you’ve given them access to.
    =>The ability to develop applications that run in both the private and public cloud.

Find out more about Microsoft’s cloud solution.

0 comments: