title: Google calendar API OAUTH
body: <p>I'm trying to make a Java app (stand alone not web based) that connects to Google calendar but im having issues getting past the OAuth stage. I have looked over every part of the Google API i can see.</p>
  
  <p>The newest version i can find is at <code>https://developers.google.com/google-apps/calendar/instantiate</code></p>
  
  <p>I have downloaded the 2 sets of JAR files they say to (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 deprication errors for about half the classes and some methods (mainly <code>new Calendar(httpTransport, accessProtectedResource, jsonFactory);</code>) dont work at all.</p>
  
  <p>Has 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 out of date copy of the api?</p>
  
  <p>Is gdata still in use or has it been replaced?
  Thanks
  Adrian</p>