I'm having a bit of trouble setting the url property for a telephone number 
using the .net Contacts API. Here is the code that I'm using:

            RequestSettings settings = new RequestSettings("AppName", 
"[email protected]", "password");
            ContactsRequest cr = new ContactsRequest(settings);

            Contact newEntry = new Contact();
            Name name = new Name();

            name = new Name();
            name.FullName = "John Doe";
            name.GivenName = "John";
            name.FamilyName = "Doe";
            newEntry.Name = name;

            EMail primaryEmail = new EMail("[email protected]");
            primaryEmail.Primary = true;
            
primaryEmail.Attributes[GDataParserNameTable.XmlAttributeDisplayName] = 
"John Doe";
            primaryEmail.Rel = ContactsRelationships.IsWork;
            newEntry.Emails.Add(primaryEmail);

            PhoneNumber phoneNumber = new PhoneNumber("(555) 555-5555");
            phoneNumber.Primary = true;
            phoneNumber.Rel = ContactsRelationships.IsMobile;
            phoneNumber.Uri = "tel:+15555555555";
            newEntry.Phonenumbers.Add(phoneNumber);

            newEntry.Content = "Contact information for John Doe";

            Uri feedUri = new 
Uri(ContactsQuery.CreateContactsUri("default"));

            Contact createdEntry = cr.Insert(feedUri, newEntry);

The contact gets saved to my Google account but when I retrieve it the uri 
for the phone number is null. I've also noticed that the display name for 
the email is null if I modify the email address. I'd like both to have the 
value I set them to.

Thanks,
Anthony

-- 
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/contacts/community/forum.html

Reply via email to