Google Calendar API OAUTH
I'm trying to create a Java app (standalone, not a web app) that connects to google calendar, but I'm having problems past the OAuth phase. I have looked at every part of the google API I can see.
The newest version I can find is in https://developers.google.com/google-apps/calendar/instantiate
I downloaded 2 sets of JAR files they speak (google-api-services-calendar-v3-rev3-1.5.0-beta and gdata-samples.java-1.46.0) and imported the required libraries and dependencies. This gives me error messages for about half of the classes, and some methods (mostly new Calendar(httpTransport, accessProtectedResource, jsonFactory);
) don't work at all.
Anyone got a basic example of getting an OAuth token and accessing the Google Calendar API? Am I looking at this the wrong way or am I using an outdated copy of the api?
Is gdata being used or replaced? thanks adrian
source to share
You need to run oauth first, then use oauth to call some google api like calendar.
Start with google oauth 1 for an installed app or google oauth 2 for an installed app, or search for "installed google oauth app". Scrib is a good oauth lib for Java.
source to share