For some reason every time I try to update or delete a shared contact using 
the API and the Java Google API Client I get a 403 Forbidden error. I can 
list contacts fine, I can retrieve a single contact fine, but any updates or 
deleting actions result in 403. I've searched around a bit and I haven't 
been able to find any answers for this specifically.

The only posts that I've found with someone getting a 403 error in this 
forum have either been related to authentication (I'm using ClientLogin and 
it doesn't seem to be a problem) or another post which said the error went 
away for them in a day.

Below are my update and delete requests (which a few identifiers subed out) 
which cause the 403 Forbidden errors:

-------------- REQUEST  --------------
POST https://www.google.com/m8/feeds/contacts/domain.edu/thin/2f8aa8a007d60
Accept-Encoding: gzip
Authorization: <Not Logged>
GData-Version: 3
User-Agent: IDENTIFIER Google-API-Java-Client/1.3.1-alpha
X-HTTP-Method-Override: PUT
Content-Type: application/atom+xml

<?xml version="1.0"?>
<entry xmlns="http://www.w3.org/2005/Atom"; 
xmlns:gd="http://schemas.google.com/g/2005";>
    <category scheme="http://schemas.google.com/g/2005#kind"; 
term="http://schemas.google.com/contact/2008#contact"; />
    <gd:email address="[email protected]" 
rel="http://schemas.google.com/g/2005#work"; />
    
<id>http://www.google.com/m8/feeds/contacts/domain.edu/base/2f8aa8a007d60</id>
    <link 
href="https://www.google.com/m8/feeds/photos/media/domain.edu/2f8aa8a007d60"; 
rel="http://schemas.google.com/contacts/2008/rel#photo"; />
    <link 
href="https://www.google.com/m8/feeds/contacts/domain.edu/thin/2f8aa8a007d60"; 
rel="self" />
    <link 
href="https://www.google.com/m8/feeds/contacts/domain.edu/thin/2f8aa8a007d60"; 
rel="edit" />
    <title>My Changed Title</title>
    <updated>2010-08-05T00:41:52.279Z</updated>
</entry>

-------------- REQUEST  --------------
POST https://www.google.com/m8/feeds/contacts/domain.edu/thin/2f8aa8a007d60
Accept-Encoding: gzip
Authorization: <Not Logged>
GData-Version: 3
User-Agent: IDENTIFIER Google-API-Java-Client/1.3.1-alpha
X-HTTP-Method-Override: DELETE
Content-Length: 0

These requests both seem really simple to me and I am at a dead end about 
why they are failing. Any help that you can provide about why these are 
failing would be very much obliged!

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