Closed GoogleCodeExporter closed 9 years ago
Corneliu,
Thanks for your bug report and for the patch, however, before committing your
code I wanted to double check with the Contacts API engineers in order to
understand whether we were doing the right thing.
What I found out is that the API requires both the key and the value to be
present and non-empty when adding an user-defined field, so the validation in
place is correct.
Thanks
Claudio
Original comment by ccherub...@google.com
on 22 Jun 2011 at 1:42
OK, so in the Gmail Contact Manager UI I created a new contact "John Doe" and
added a new custom field with "MyCustomFieldName" and "MyCustomFieldValue" as
the key value pair and this is the entry that comes back in the XML response:
<entry>
<id>http://www.google.com/m8/feeds/contacts/username%40gmail.com/base/[removed]</id>
<updated>2011-11-09T01:23:28.925Z</updated>
<category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/contact/2008#contact"/>
<title type="text">John Doe</title>
<link rel="http://schemas.google.com/contacts/2008/rel#edit-photo" type="image/*" href="https://www.google.com/m8/feeds/photos/media/username%40gmail.com/[removed]"/>
<link rel="self" type="application/atom+xml" href="https://www.google.com/m8/feeds/contacts/username%40gmail.com/full/[removed]"/>
<link rel="edit" type="application/atom+xml" href="https://www.google.com/m8/feeds/contacts/username%40gmail.com/full/[removed]"/>
</entry>
Original comment by dave.r...@gmail.com
on 9 Nov 2011 at 1:31
If the XML doesn't contain the custom fields, then this is not a bug in the
.NET client library, but instead it seems like there's something wrong with the
Contacts API.
Please ask for support in the Contacts API forum:
http://code.google.com/apis/contacts/community/
Thanks
Claudio
Original comment by ccherub...@google.com
on 9 Nov 2011 at 1:38
Original issue reported on code.google.com by
corneliu...@gtempaccount.com
on 21 Jun 2011 at 11:40