Hi all,
I had to dig out the same issue once more which I posted long back in
the below thread to Google Groups.
http://groups.google.com/group/google-contacts-api/browse_thread/thread/81c8b04d89edb74f?hl=en
That time only *<atom:link rel='http://schemas.google.com/g/2005#post> *was
missing in the XML response for batch operation.
But today *September 30 IST*, 2 more tags are missing in the XML response
for batch operation which was present till yesterday *September 29 IST.
They are:
<atom:link rel="http://schemas.google.com/g/2005#feed"
type="application/atom+xml" href="
http://www.google.com/m8/feeds/contacts/test.scf%40gmail.com/full"/>
<atom:link rel="http://schemas.google.com/g/2005#batch"
type="application/atom+xml" href="
http://www.google.com/m8/feeds/contacts/test.scf%40gmail.com/full/batch"/>
*Below is the same request for adding a single field *(Note*) through Google
Protocol for Contacts API. Verified with versions 2 and 3.
*URL:* *
http://www.google.com/m8/feeds/contacts/[email protected]/full/batch *
*Headers Used : *
*Key Value*
If-Match - *
Authorization - GoogleLogin auth=<ClientAuthToken>
*Content-Type*: application/atom+xml; charset=UTF-8
*Method* : *POST*
*Request
**<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns='http://www.w3.org/2005/Atom' xmlns:gContact='
http://schemas.google.com/contact/2008'
xmlns:gd='http://schemas.google.com/g/2005' xmlns:batch='
http://schemas.google.com/gdata/batch'>
<category scheme='http://schemas.google.com/g/2005#kind' term='
http://schemas.google.com/g/2008#contact' />
<entry>
<batch:operation type='insert' />
<title type='text'>NoteCheck</title>
<category scheme='http://schemas.google.com/g/2005#kind'
term='http://schemas.google.com/g/2008#contact' />
<content type='text'>Add the Notes Here</content>
</entry>
</feed>**
Response on Sep 29
**<atom:feed xmlns:batch="http://schemas.google.com/gdata/batch"
xmlns:gContact="http://schemas.google.com/contact/2008" xmlns:atom="
http://www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005"
xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">
<atom:id>http://www.google.com/m8/feeds/contacts/**test.scf%
40gmail.com/full</atom:id>
<atom:updated>2009-09-29T10:14:51.825Z</atom:updated>
<atom:title type="text">Batch Feed</atom:title>
<atom:link rel="http://schemas.google.com/g/2005#feed"
type="application/atom+xml" href="
http://www.google.com/m8/feeds/contacts/test.scf%40gmail.com/full"/>
<atom:link rel="http://schemas.google.com/g/2005#batch"
type="application/atom+xml" href="
http://www.google.com/m8/feeds/contacts/test.scf%40gmail.com/full/batch"/>
<atom:entry>
<atom:id>
http://www.google.com/m8/feeds/contacts/test.scf%40gmail.com/base/3aedd0948ef8a5d9
</atom:id>
<atom:updated>2009-09-29T10:14:51.777Z</atom:updated>
<atom:category scheme="http://schemas.google.com/g/2005#kind" term="
http://schemas.google.com/contact/2008#contact"/>
<atom:title type="text">NoteCheck</atom:title>
<atom:content type="text">Add the Notes Here</atom:content>
<atom:link rel="http://schemas.google.com/contacts/2008/rel#edit-photo"
type="image/*" href="
http://www.google.com/m8/feeds/photos/media/test.scf%40gmail.com/3aedd0948ef8a5d9/1B2M2Y8AsgTpgAmY7PhCfg
"/>
<atom:link rel="self" type="application/atom+xml" href="
http://www.google.com/m8/feeds/contacts/test.scf%40gmail.com/full/3aedd0948ef8a5d9
"/>
<atom:link rel="edit" type="application/atom+xml" href="
http://www.google.com/m8/feeds/contacts/test.scf%40gmail.com/full/3aedd0948ef8a5d9/1254219291777000
"/>
<batch:status reason="Created" code="201"/>
<batch:operation type="insert"/>
</atom:entry>
</atom:feed>**
Response on Sep 30
**<atom:feed xmlns:batch="http://schemas.google.com/gdata/batch"
xmlns:gContact="http://schemas.google.com/contact/2008" xmlns:atom="
http://www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005"
xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">
<atom:id>
http://www.google.com/m8/feeds/contacts/test.scf%40gmail.com/full/batch/1254290714102
</atom:id>
<atom:updated>2009-09-30T06:05:14.547Z</atom:updated>
<atom:title type="text">Batch Feed</atom:title>
<atom:entry>
<atom:id>
http://www.google.com/m8/feeds/contacts/test.scf%40gmail.com/base/2910a3a38f4c58e8
</atom:id>
<atom:updated>2009-09-30T06:05:14.316Z</atom:updated>
<atom:category scheme="http://schemas.google.com/g/2005#kind" term="
http://schemas.google.com/contact/2008#contact"/>
<atom:title type="text">NoteCheck_Sep30</atom:title>
<atom:content type="text">Add the Notes Here</atom:content>
<atom:link rel="http://schemas.google.com/contacts/2008/rel#edit-photo"
type="image/*" href="
http://www.google.com/m8/feeds/photos/media/test.scf%40gmail.com/2910a3a38f4c58e8/1B2M2Y8AsgTpgAmY7PhCfg
"/>
<atom:link rel="self" type="application/atom+xml" href="
http://www.google.com/m8/feeds/contacts/test.scf%40gmail.com/full/2910a3a38f4c58e8
"/>
<atom:link rel="edit" type="application/atom+xml" href="
http://www.google.com/m8/feeds/contacts/test.scf%40gmail.com/full/2910a3a38f4c58e8/1254290714316000
"/>
<batch:status reason="Created" code="201"/>
<batch:operation type="insert"/>
</atom:entry>
</atom:feed>**
*From the above 2 different responses you can find the actual tags missing.
I have also marked the *<atom:updated>* tag to find the date time
difference.
Please from now onwards, do inform the changes made to the Protocol Contacts
API for both Batch and Normal operations.
Also clarify whether the above changes have been made to the Batch XML
responses. In all Add,Edit,Delete and Get operations, those 2 tags are
missing which becomes a tough task for me to update everywhere. Please
respond ASAP.
Thanks,
Test.
*
*
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Contacts API" 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://groups.google.com/group/google-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---