I go through 2 different Google Calendar code samples. After finished reading them, I am getting confused.
https://developers.google.com/google-apps/calendar/instantiate
- They are using oAuth2?
- They are using scope
https://www.googleapis.com/auth/calendar. Is it because they are using oAuth2? - They required 2 API keys,
clientIdandclientSecret. Is it because they are using oAuth2? - They are using
com.google.api.services.calendar.Calendar.
- They are using ClientLogin?
- The scope is
cl? Is it because they are using ClientLogin? - They only require 1 simple API access key. Is it because they are using ClientLogin?
- They are using
com.google.api.services.calendar.model.Calendar. What is the difference withcom.google.api.services.calendar.Calendar?
My target platform is on Android. Should I be using method from 1st example, or 2nd example?
Written by Google, this library is an easy-to-use and efficient Java client library for accessing Google APIs using JSON and **OAuth 2.0.**(emph mine) - Nanne