On Apr 24, 11:53 pm, rgarito <[EMAIL PROTECTED]> wrote:
> First of all, I want to repeat the concerns of many of the other
> posters here that the documentation for the Google Calendar API is
> quite frankly, terrible.  A lot of important information is missing
> and some of it does not work at all as described.

I am sympathetic. The taxonomy of the different uris is quite
confusing. The best examples of sample code and documentation of what
works is in the various api libraries. You can read the .net, php,
python or java code to figure out what you want to do and repeat it in
your language of choice.

> I am using raw XML and HTTP requests for this project, as the code is
> written in non-dot-net Visual Basic.  There are no API libraries
> available for my environment.  There are almost no example code
> snippets out there for this scenario.  Shame on Google for this, as
> there are a lot of us who's code base contains millions of lines of
> code in older languages that cannot be converted every time a new,
> fancy version of Microsoft's compilers come out (ie, .NET).
>
> Case-in-point:
>
> DELETE an event--one is supposed to send a DELETE request to the EDIT
> uri.  Except that there is no edit URI ever presented to us!

See below.

> The code works something like this:
>
> 1)  Log in to google using the ClientLogin method.  (ie, subsequent
> requests include the "Authorization: GoogleLogin auth=xxxx" entry in
> the HTTP header).  We are NOT using the "magic cookie" method, which
> is documented as not returning EDIT URI's.
>
> 2)  Obtain a list of all calendars of the user.  (this works fine and
> we do receive an EDIT uri for each calendar itself)
>
> 3)  For each calendar, obtain a list of all entries in the calendar
> (using the Post URI from the above calendar entries in #2).

This step won't work.  You need to obtain the calendar feed from:

https://www.google.com:443/calendar/feeds/#{calendar_id}/private/full

or the single event feed from:

http://www.google.com/calendar/feeds/#{calendar_id}/visibility/projection/eventID

This is reasonably well documented for a user's primary calendar here:
http://code.google.com/apis/calendar/reference.html#Event_feeds

but not so well for a user's secondary calendars. There is a problem
that the phrase user id is used often in the documentation and
examples when what is actually meant is calendar id. The user id is
the calendar id of the user's primary calendar, but not for secondary
calendars.


> 4)  For each entry that we want to delete, perform a DELETE with the
> ID obtained in step 4 above.  ***BUT*** There is no edit URI returned
> in step 3.  We have tried Self and Alt (the only 2 URI's returned) and
> neither works.  Both return a 501 NOT IMPLEMENTED error.
>
> As a test, I also tried modifying step 2 with the EDIT URI of the
> calendar instead, but got no event entries in step 3 when I did this.

Try modifying your step 3 and getting the edit link of the actual
event. This should work.

Ray
--~--~---------~--~----~------------~-------~--~----~
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://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to