Hi,

To retrieve events from public calendar is essential the same as retrieving
events from a private calendar, except that you do not need to set up the
authentication with username and password and you just need to specify
"public" flag in the feed URL where you send the request to.  A sample code
of how to retrieve events from public calendar -

  public void retrieveEvent() throws Exception {

    CalendarService calendarService = new CalendarService("calendar");

        URL feedUrl = new URL("
http://www.google.com/calendar/feeds/[EMAIL PROTECTED]/public/full");
    CalendarEventFeed resultFeed = calendarService.getFeed(feedUrl,
CalendarEventFeed.class);

    Iterator iter = resultFeed.getEntries().iterator();

    while (iter.hasNext()) {
      CalendarEventEntry entry = (CalendarEventEntry) iter.next();
      System.out.println("Event title = " +
entry.getTitle().getPlainText());
    }
  }

Hope it helps,
Austin

On Fri, Jun 13, 2008 at 2:19 PM, wilmersarmiento <[EMAIL PROTECTED]>
wrote:

>
> I have a public calendar and I want see the public events without
> authentication. How can I do this? I'm tired to read the API and
> search for sample codes to do this. Anyone can give me
>
> Thanks in advice!
> >
>

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