I actually was looking at the queryTodaysEvents sample code, but had
been unable to modify it to not require authenticated access.

If I build up the URLs myself and then request event info from the
API, I do manage to get the expected events for the date ranges.  I
don't know what's up with the Objective-C API but putting together the
URLs isn't a problem.

I'm going to have to take it back to the Objective C Google data API
group though-- because while this approach gives me the list of events
for a particular day, the event objects (GDataEntryCalendarEvent
objects in that API) don't know what time they start or end at.  I'm
confident that I know how to get those times, because I can get them
when I've used authenticated access, but my hand-made URLs return
events that seem to know little more than their title.

Thanks Ray, this has been a big help.

On Apr 13, 7:19 pm, Ray Baxter <[email protected]> wrote:
> The documents are imprecise. They should say, "First, authenticate the
> user, if required, and if you haven't already done so."
>
> Taking the example directly from where you indicated, this url works
> as expected without any authentication:
>
> http://www.google.com/calendar/feeds/calendar.maven%40gmail.com/publi...
>
> Also, I built the Objective-C api and I see that you can also view
> calendars that you don't own and issue queries on them.  By checking
> the box on the sample app to "Log http to desktop" I was able to see
> that the api issued exactly this query:
>
> http://www.google.com/calendar/feeds/calendar.maven%40gmail.com/priva...
>
> If you look at the sample code for queryTodaysEvents you should be
> able to modify it appropriately to query of any time span by passing
> in the  correct times and the public calendar's feedurl.
>
> Ray
>
> On Mon, Apr 13, 2009 at 1:58 PM, Tom Harrington <[email protected]> wrote:
>
> > On Apr 13, 11:52 am, Ray Baxter <[email protected]> wrote:
> >> There are several different APIs here, so it's important to be precise.
>
> > I get that but I'm finding it difficult to do, not least because I'm
> > finding it almost impossible to relate method calls in the Objective C
> > API to actions described in the calendar API documentation.
>
> > Regardless I think I have my answer.  The calendar API docs, under
> > "Retrieving events for a specified date range" read in part "First,
> > authenticate the user, if you haven't already done so."  Regardless of
> > terminology, unless the docs are incorrect or there's a work-around
> > someone can suggest, it would appear that I can't do the kind of query
> > I'm looking for without first authenticating as a user.
--~--~---------~--~----~------------~-------~--~----~
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