On 11/2/08, shalti <[EMAIL PROTECTED]> wrote:
>
> Hey everybody,
>
> I'm trying to get a simple feed of my calendar using this code:
>
> <code>
> CalendarService calService = new CalendarService(this.Name);
> CalendarQuery query = new CalendarQuery("http://www.google.com/
> calendar/feeds/" + guser + "/private/full");
>
> if (guser != null && guser.Length > 0)
> calService.setUserCredentials(guser, gpass);
>
> CalendarFeed feed = calService.Query(query);
> </code>
>
> where guser is [EMAIL PROTECTED]
>
> The problem is that feed keeps returning as null, no matter what I do,
> it is always null.
> I checked using fiddler the messages that I'm sending and receiving
> and I am indeed receiving the feed back from google and it looks fine.
> I just don't know why the the Query method always returns null.
>
> Any help would be appreciated.
>
> Thank you
Shalti,
The problem is that you're requesting an event feed, but your code is
expecting a calendar feed.
To fix this, change CalendarQuery to EventQuery, and CalendarFeed to
EventFeed, and it should work.
--
Trevor Johns
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---