I had this working at one point... So, I'm using the HTTP protocol to access the Google Calendar API. I'm trying to modify event, and I'm getting a 400 error back when I try to access the API.
I'm using Apache's HttpComponents to drive this thing. I guess the only inconsistancy that jumps out at me in my own XML immeadiately is that some of my fields are URL safe, and some aren't. I suppose that if I URL encoded data that didn't need it, I'd just get funny values for the fields (like an event description that literally was This+is+a+test+event), but if I'm supposed to be URL encoding this stuff and I don't, presumably an error would come back... Anyway, I'm confused. Google's Data Protocol API's leave something to be desired, so I'm not sure what I'm missing. Any help is greatly appreciated :) HTTP Protocol: PUT Headers: GData-Version : 2 Authorization : "OAuth " + presumablyValidAccessToken, If-Match : * Content-Type : application/atom+xml Body: (partially redacted for security) <entry xmlns="http://www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005" xmlns:app="http://www.w3.org/2007/app" xmlns:gCal="http://schemas.google.com/gCal/2005" gd:etag=""FkkNQgFBeCp7JGA6WhJW"" gd:kind="calendar#event"> <id>http://www.google.com/calendar/feeds/cs1pldl6ljaahcncnmurptk%40group.calendar.google.com/events/m4le14p2lo9n9vic1ui1pik</id> <published>2011-11-08T22:44:30.000Z</published> <updated>2011-11-08T22:45:06.000Z</updated> <app:edited>2011-11-08T22:45:06.000Z</app:edited> <category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/g/2005#event"/> <title>testEventRENAMED</title> <content>This+is+a+test+event</content> <link href="https://www.google.com/calendar/event?eid=bTRsZTE0cDJsbzluOXZpYzF1djlyaTFwaWsgY3MxcHUyZGsamFhaGNuY25tdXJwdGtAZw" rel="alternate" title="alternate" type="text/html"/> <link href="https://www.google.com/calendar/feeds/cs1pu26ljaahcncnmurptk%40group.calendar.google.com/private/full/m4le14p2lo9n9vici1pik" rel="self" type="application/atom+xml"/> <link href="https://www.google.com/calendar/feeds/cs1pujaahcncnmurptk%40group.calendar.google.com/private/full/m4le14p2lo9n9i1pik" rel="edit" type="application/atom+xml"/> <author> <name>kfjATgmailDOTcom</name> <email>kfjATgmailDOTcom</email> </author> <gd:comments> <gd:feedLink href="https://www.google.com/calendar/feeds/cs1pu6ljaahcncnmurptk%40group.calendar.google.com/private/full/m4le14p2lo9n9vik/comments"/> </gd:comments> <gd:eventStatus value="http://schemas.google.com/g/2005#event.confirmed"/> <gd:where valueString="nowhere+in+particular"/> <gd:who email="[email protected]" rel="http://schemas.google.com/g/2005#event.organizer" valueString="restDriverCal"/> <gd:when endTime="2011-11-09T14%3A31%3A55.000-08%3A00" startTime="2011-11-08T14%3A31%3A55.000-08%3A00"/> <gd:transparency value="http://schemas.google.com/g/2005#event.opaque"/> <gd:visibility value="http://schemas.google.com/g/2005#event.default"/> <gCal:anyoneCanAddSelf value="false"/> <gCal:guestsCanInviteOthers value="true"/> <gCal:guestsCanModify value="false"/> <gCal:guestsCanSeeGuests value="true"/> <gCal:sequence value="0"/> <gCal:uid value="[email protected]"/> </entry> -- You received this message because you are subscribed to the Google Groups "Google Calendar Data 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://code.google.com/apis/calendar/community/forum.html
