Hi, Please ask in the Calendar API forum:
http://groups.google.com/group/google-calendar-help-dataapi Cheers, -Jeff On Nov 15, 10:45 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > the sample: > //Create a new query object and set the parameters > Query myQuery = new Query(feedURL); > myQuery.setFullTextQuery("Pi"); > > //Send the request with the built query URL > CalendarEventFeed myResultsFeed = myService.query(myQuery, > CalendarEventFeed.class); > > //Take the first match and print the title > if (myResultsFeed.getEntries().size() > 0) { > CalendarEventEntry firstMatchEntry = new CalendarEventEntry(); > myResultsFeed.getEntries().get(0); > System.out.println(firstMatchEntry.getTitle().getPlainText()); > > } > > if I want to add the "building a query" sample after the "request all > the calendars you own and display all the titles" and "creat object > and insert" sampls in the main class to run these three together, is > the "feedURL" in the second line should be changed to "feedUrl"? > because it was state as 'feedUrl' in other two sample above.and is > there any place need to be edited? > but after I change to the "feedUrl" > it result is : > Exception in thread "main" > com.google.gdata.util.ServiceForbiddenException: Forbidden > This service does not support the 'q' parameter. > > at > com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse > (HttpGDataRequest.java:505) > at > com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse > (GoogleGDataRequest.java:558) > at com.google.gdata.client.http.HttpGDataRequest.checkResponse > (HttpGDataRequest.java:480) > at com.google.gdata.client.http.HttpGDataRequest.execute > (HttpGDataRequest.java:459) > at com.google.gdata.client.http.GoogleGDataRequest.execute > (GoogleGDataRequest.java:530) > at com.google.gdata.client.Service.getFeed(Service.java:887) > at com.google.gdata.client.Service.getFeed(Service.java:828) > at com.google.gdata.client.GoogleService.getFeed > (GoogleService.java:623) > at com.google.gdata.client.Service.query(Service.java:1124) > at com.google.gdata.client.Service.query(Service.java:1067) > at calendartest.CalendarTest.main(CalendarTest.java:81) > Java Result: 1 > BUILD SUCCESSFUL (total time: 4 seconds) > > and at the same time, "Your calendars" only display one calendar,but > in fact I have four calendars.I don't konw why? > > Thank you so much. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Data Protocol" 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-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
