google to add support for the calendar api to my project. Then I tried
to setup a test example using rpc to connect to the calender api on
the server side. HOWEVER, several classes and functions appear to be
missing from the gwt version of the gdata calendar api. and I cant
even follow this simple example without getting warnings for some
imports.
import com.google.gdata.client.*;
import com.google.gdata.client.calendar.*;
import com.google.gdata.data.*;
import com.google.gdata.data.acl.*;
import com.google.gdata.data.calendar.*;
import com.google.gdata.data.extensions.*;
import com.google.gdata.util.*;
import java.net.URL;
// Create a CalenderService and authenticate
CalendarService myService = new CalendarService("exampleCo-
exampleApp-1");
myService.setUserCredentials("jo@gmail.com", "mypassword");
// Send the request and print the response
URL feedUrl = new URL("https://www.google.com/calendar/feeds/default/
allcalendars/full");
CalendarFeed resultFeed = myService.getFeed(feedUrl,
CalendarFeed.class);
System.out.println("Your calendars:");
System.out.println();
for (int i = 0; i < resultFeed.getEntries().size(); i++) {
CalendarEntry entry = resultFeed.getEntries().get(i);
System.out.println("\t" + entry.getTitle().getPlainText());
}
The ide instantly warns me that there is no source for the following
imports:
import com.google.gdata.util.*;
import com.google.gdata.data.acl.*;
I'm literally trying to follow this
http://code.google.com/apis/calendar/data/2.0/developers_guide_java.html
Line By Line, but because of some f***** annoying reason no
documentation exists to explain to my why i CANT do anything beyond
just creating an instance of CalendarService. I cant use any of the
functions listed in the example and it is driving me crazy since my
gwt development environment was auto setup by eclipse is it too much
for it to just work? and if its such a hassle to make it work, why is
there NO explanation on how to use the auto installed apparently
watered down version of the java client. I can see that it extends the
GoogleService class, So why am I unable to use ANY functions.
I'm using the most current versions of everything. Any help or
suggestions are much appreciated
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment