Java – Google Calendar API OAuth
I'm trying to create a Java application connected to Google Calendar (independent of web-based application), but the problem I encountered has passed the OAuth stage I've looked at every part of Google API I can see
The latest version I can find is located at https://developers.google.com/google-apps/calendar/instantiate
I have downloaded what they call two sets of jar files (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 about half of the classes and some methods (mainly the depriction errors of the new calendar (httptransport, accessprotectedresource, jsonfactory)) It doesn't work at all
Does anyone have a basic example of getting OAuth tokens and accessing the Google Calendar API? Do I look at this in the wrong way or do I use an outdated copy of the API?
Is gdata still in use or has it been replaced? Thank Adrian
Solution
You need to make OAuth work first, and then use OAuth to call some Google APIs, such as calendar
Start with Google OAuth 1 for installed app or Google OAuth 2 for installed app or search for "Google OAuth installed app" Scrib is an excellent OAuth lib for Java