I got "Missing resource version ID" error when trying to delete a
contact. Anybody have an idea?

function delete($url, $token)
{
      $ch = curl_init();
      curl_setopt($ch, CURLOPT_CUSTOMREQUEST,"DELETE");
      curl_setopt($ch, CURLOPT_URL, $url);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      $curlheader[0] = sprintf("Authorization: AuthSub token=\"%s\"/
n   GData-Version:\"3.0\" ", $token);
      $curlheader[1] = 'Content-Type: application/atom+xml';
      curl_setopt($ch, CURLOPT_HTTPHEADER, $curlheader);
      curl_setopt($ch, CURLOPT_HEADER, 1);

      $output = curl_exec($ch);
      curl_close($ch);
      return $output;
}

$sXML =delete('https://www.google.com/m8/feeds/contacts/default/base/
490964cf0a5b2737', $tokd);
 print_r ($sXML);

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