Search code examples
phpgmail-apigoogle-client

Shared Contact API - Error code 409 (Conflict) while deleting an contact


I am using google client for PHP I downloaded from here : https://code.google.com/p/google-api-php-client/downloads/detail?name=google-api-php-client-0.6.7.tar.gz&can=1&q=

I am getting response code 409 - Conflict while trying to delete a contact. Please check my code here : http://staging.point-star.com/sharedcontact/code1/examples/contacts/shared_contact_api_del_code.png

Here is result screenshot : http://staging.point-star.com/sharedcontact/code1/examples/contacts/shared_contact_api_result_screenshot.png

It returns me detail of that contact in response body. What I am missing here ?


Solution

  • Thanks for the help, I figure it out.. I was passing extra "/delete" at end of the URL. I just need to pass "https://google.com/m8/feeds/contacts/domain.com/full/xxx/xxx" (I was passing xxx/xxx/delete").