Hi derbaer, To access a specific calendar you need to find the feed URL for that calendar. You can get this URL manually from the Google Calendar web application, or use the Google Calendar data API.
Using the web application: 1) Click the down arrow next to the calendar you want to access. 2) Select 'Calendar settings' from the menu. 3) Click the orange 'XML' button 4) The feed URL will appear in a popup Using the data API: 1) Access the calendar metafeed as described here: http://code.google.com/apis/calendar/developers_guide_java.html#RetrievingCalendars 2) The 'alternate' link in each entry will contain the feed URL for that calendar. Once you have the feed URL you can substitute it for the feedURL variable in your code and your queries will then be directed at the calendar you specify. Happy coding, Lane On Jul 16, 7:24 am, derbaer <[EMAIL PROTECTED]> wrote: > Hello! > I want to the the events from multiple / a specified calendar. > The current code is > > List theNewItems = new LinkedList(); > URL feedUrl = new URL("http://www.google.com/calendar/feeds/default/ > private/full"); > > CalendarQuery myQuery = new CalendarQuery(feedUrl); > myQuery.setUpdatedMin(DateTime.parseDateTime(CUtil > .createTimeString(aStart))); > myQuery.setUpdatedMax(DateTime.parseDateTime(CUtil > .createTimeString(aEnd))); > > Feed resultFeed = (Feed) myService.query(myQuery, Feed.class); > resultFeed.getEntries() > > which gets all the entrys of the first calendar in my account. > What I now want is to get the entrys of another calendar or the entrys > of all calendars I have. I have not yet found a way but there must > exist one ;-) > > I have tried to get the calendar feeds and get the entries from there, > but I go stuck. > > Thanks, > derbear --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
