I haven't used the Objective-C API, but it looks like you are passing  
the wrong url strings. You shouldn't have both "default" and the  
calendarID ("xxx.xxxx%40gmail.com") in the same url.

I think in both cases you should be passing something like:

NSURL 
URLWithString:@"http://www.google.com/calendar/feeds/xxx.xxxx/private/full 
"

Ray

On Sep 20, 2008, at 9:22 PM, Barcoder96 wrote:

>
> In my Objective-C application I want to store locally a calendar ID
> and use this to retrieve the calendar object from the web. I can't
> figure out what call to make to get a specific calendar.
>
> I tried to use fetchCalendarQuery: using the specific URL for the
> calendar I am trying to fetch:
>
>       GDataQueryCalendar *query = [GDataQueryCalendar
> calendarQueryWithFeedURL:[NSURL URLWithString: @"http:// 
> www.google.com/
> calendar/feeds/default/xxx.xxxx%40gmail.com"]];
>       ticket = [service fetchCalendarQuery:query delegate:self
> didFinishSelector:@selector
> (calendarListFetchTicket:finishedWithFeed:) didFailSelector: @selector
> (calendarListFetchTicket:failedWithError:)];
>
> But this caused the following assertion:
>
> 2008-09-20 23:06:42.482 CalendarSample[7700:813] *** Assertion failure
> in -[GDataFeedCalendar setupFromXMLElement:], /Users/lee/Development/
> gdata-objectivec-client-read-only2/Source/BaseClasses/GDataFeedBase.m:
> 141
> 2008-09-20 23:06:42.484 CalendarSample[7700:813] initing a feed from a
> non-feed element (entry)
>
> I also tried the following, I tried to use fetchCalendarFeedWithURL:
> using the specific URL for the calendar I am trying to fetch:
>
> ticket = [service fetchCalendarFeedWithURL:[NSURL
> URLWithString:@"http://www.google.com/calendar/feeds/default/xxx.xxxx
> %40gmail.com"] delegate:self didFinishSelector: @selector
> (calendarListFetchTicket:finishedWithFeed:) didFailSelector: @selector
> (calendarListFetchTicket:failedWithError:)];
>
> But this caused the following error:
>
> 2008-09-20 22:37:21.745 CalendarSample[7474:10b]
> serviceBase:<GDataServiceGoogleCalendar: 0x391730>
> objectFetcher:<GDataHTTPFetcher: 0x3ce580> failedWithStatus:400
> data:Unknown visibility found:[EMAIL PROTECTED]
>
> Is there something I am missing?
>
> 

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