I'm migrating an existing application to the version 2 of the Contacts
API and I can't seem to delete groups.

I'm fetching the group "edit" URI, something like
http://www.google.com/m8/feeds/groups/XXXXXXXXX%40gmail.com/full/XXXXXXXXXXXX
and then issuing an HTTP DELETE with the following headers:

Content-Type: application/atom+xml
GData-Version: 2
If-Match: *


I've also tried using the group etag instead of * but I always get the
same "Unexpected resource version ID"

And no, I'm not using cached URIs from v1, the reply I get from the
API when I fetch the group list is something like:

<entry
gd:etag="&quot;QXc8cTVSLyp7ImA9WxVWEU8MQQE.&quot;">
      <id>http://www.google.com/m8/feeds/groups/XXXXXXXXX%40gmail.com/
base/XXXXXXXXXXXXXX</
id>
      <updated>2009-02-20T10:44:10.979Z</
updated>
      <app:edited xmlns:app="http://www.w3.org/2007/
app">2009-02-20T10:44:10.979Z</
app:edited>
      <category scheme="http://schemas.google.com/g/2005#kind";
term="http://schemas.google.com/contact/2008#group"/
>
      <title>Group 1</
title>
      <content>Group 1</
content>
      <link rel="self" type="application/atom+xml" href="http://
www.google.com/m8/feeds/groups/XXXXXXXXXXXX%40gmail.com/full/XXXXXXXXXXXXXXX"/>
      <link rel="edit" type="application/atom+xml" href="http://
www.google.com/m8/feeds/groups/XXXXXXXXXXXX%40gmail.com/full/XXXXXXXXXXXXXXX"/>
      <gd:extendedProperty
name="XXXXXXXXXXXXXx">
    <info>XXXXXXXXXXXXX</
info>
  </
gd:extendedProperty>
    </entry>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to