When I try to create a contact without an email I get an malformed or 
illegal request error. The XML for the contact has the following structure:

<atom:entry xmlns:atom="http://www.w3.org/2005/Atom"; 
xmlns:gd="http://schemas.google.com/g/2005"; 
xmlns:gContact="http://schemas.google.com/contact/2008";>
  <atom:category scheme="http://schemas.google.com/g/2005#kind"; 
term="http://schemas.google.com/contact/2008#contact"/>
  <atom:content type="text">Some Text</atom:content>
  <gd:name>
    <gd:givenName>GivenName</gd:givenName>
    <gd:familyName>FamilyName</gd:familyName>
  </gd:name>
  <gd:phoneNumber rel="http://schemas.google.com/g/2005#work";>+123 456 
789</gd:phoneNumber>
  <gd:organization rel="http://schemas.google.com/g/2005#work";>
    <gd:orgName>OrgName</gd:orgName>
  </gd:organization>
  <gd:structuredPostalAddress rel="http://schemas.google.com/g/2005#work";>
    <gd:street>Street</gd:street>
    <gd:city>City</gd:city>
    <gd:country>USA</gd:country>
    <gd:postcode>123456</gd:postcode>
  </gd:structuredPostalAddress>
</atom:entry>

I successfully synchronized more than 4000 contacts with email addresses 
with the same script but omitting the email field leads to an error.

Thanks in advance,

Cedric

-- 
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