troubleshooting Question

Get Extended Property from Google Contact using .Net Library

Avatar of Craig Lambie
Craig LambieFlag for Australia asked on
C#Cloud ComputingGoogle Chrome OSGoogle Workspace
3 Comments1 Solution1122 ViewsLast Modified:
Hi Experts,

I am using this code to retrieve a list of contacts from Google Contacts
 public Feed<Contact> GetContacts()
            //Provide Login Information
            RequestSettings rsLoginInfo = new RequestSettings("", Constants.GoogleAc.Username, Constants.GoogleAc.Password);
            rsLoginInfo.AutoPaging = true;

            // Fetch contacts and dislay them in ListBox
            cr = new ContactsRequest(rsLoginInfo);
            Feed<Contact> feedContacts = cr.GetContacts();

            return feedContacts;

        } //GetContacts

And I can successfully look up a lot of info, but I have created a custom field in my address book, and want to retrieve it.  I can't work out how to access the Extended Properties?
Any ideas?
foreach (Contact ct in cts.Entries)
                ContactDetails Ctct = new ContactDetails();
                Ctct.FirstName = ct.Name.GivenName;
                Ctct.LastName = ct.Name.FamilyName;
                Ctct.Email = ct.PrimaryEmail.Value;
                Ctct.Mobile = ct.PrimaryPhonenumber.Value;
                Ctct.TwitterName = ct.ExtendedProperties ***????
Craig Lambie

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros