Hello Anthony, Not being able to set the phone number's URI is indeed an issue which you can file in the public issue tracker<http://code.google.com/a/google.com/p/apps-api-issues/issues/list?q=label:API-Contacts>. Please post the link to the issue when created so that other people may also "star" it; the more star it gets, the easier it is for us to prioritize issues and feature requests. About the email address' display name, where do you modify the e-mail address, is it through the API or through the web UI? If it is the latter, this should be the intended behavior since this is the entire e-mail field that is modified (including the e-mail Rel and Display Name).
Best, Alain On Fri, Jun 3, 2011 at 12:04 PM, Anthony Romero <[email protected]>wrote: > 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 > -- Alain Vongsouvanh -- 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
