On Fri, Mar 20, 2009 at 6:24 AM, Dave DeGroote <[email protected]> wrote: > > I'm using the Javascript API and am trying to create a simple app to > edit an event. > > I am able to get a list of calendars to display by using: > > var LOGIN_FEED_URL = "http://www.google.com/calendar/feeds/"; > var CALENDAR_FEED_URL = "http://www.google.com/calendar/feeds/default/ > owncalendars/full"; > token = google.accounts.user.login(LOGIN_FEED_URL); > var query = new google.gdata.calendar.CalendarEventQuery > (CALENDAR_FEED_URL); > service.getEventsFeed(query, loadCalendarListResults, handleGDError); > > I can also load events using: (### is the calendar ID) > var calendarURL = "http://www.google.com/calendar/feeds/### > %40group.calendar.google.com/public/full"; > var query = new google.gdata.calendar.CalendarEventQuery(calendarURL); > service.getEventsFeed(query, listEvents, handleGDError); > > But when I change the above URL to "..../private/full" (so I can edit > the > events) I get this: > I get this:"Root cause: HTTP error 400 with status text of: Request > via script load timed out. Possible causes: feed URL is incorrect; > feed requires authentication" > > If I try to log in using the above /private/full URL, then loading the > calendar list fails. > > What am I missing here? How do I login so that I can get access to > both feeds at the same time? > > Thanks, > Dave DeGroote
Dave, You'll definitely need to puse /private/full when loading group calendars. I'm not sure why you're getting an HTTP 400 error though, since you called google.accounts.user.login(). Can you post a sample HTML page somewhere that demonstrates this behavior? -- 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 -~----------~----~----~----~------~----~------~--~---
