I want to search the EventEntries inside one specific calendar feed
determinded by its IcalUID...

I tried to follow this example:
Retrieving events matching a full text query:
http://code.google.com/intl/de-DE/apis/calendar/docs/2.0/developers_guide_java.html#RetrievingEvents

Is there a way to search for events by asking something like this:
"Can you please return the event entry with the IcalUID of
[email protected]?"

My code looks like this:
-------------------------------
        Query timQuery = new Query(new URL(feedUrl));
        timQuery.setFullTextQuery("[email protected]");

        //timQuery.setFullTextQuery("Johanns Teest"); - this does'nt work as
well
        CalendarEventFeed myResultsFeed;
        try {
                myResultsFeed = googleCalendarService.query(timQuery,
CalendarEventFeed.class);
                if (myResultsFeed.getEntries().size() > 0) {
                        CalendarEventEntry firstMatchEntry = 
(CalendarEventEntry)
myResultsFeed.getEntries().get(0);
                        String myEntryTitle = 
firstMatchEntry.getTitle().getPlainText
();
                        System.out.println("  found entry: " + myEntryTitle);
                }
        } catch (ServiceException e) {
                System.err.println ("error message: " + e.getMessage());
                e.printStackTrace();
        }
-------------------------------
But all I got is:
error message: Bad Request
com.google.gdata.util.InvalidEntryException: Bad Request
Unknown visibility found:calendars

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