我浏览了 2 个不同的 Google 日历代码示例。读完之后,我越来越糊涂了。
https://developers.google.com/google-apps/calendar/instantiate
- 他们正在使用 oAuth2?
- 他们正在使用范围
https://www.googleapis.com/auth/calendar。是因为他们使用的是oAuth2吗? - 他们需要 2 个 API 密钥
clientId和clientSecret. 是因为他们使用的是oAuth2吗? - 他们正在使用
com.google.api.services.calendar.Calendar.
- 他们正在使用 ClientLogin?
- 范围是
cl?是因为他们使用的是 ClientLogin 吗? - 它们只需要 1 个简单的 API 访问密钥。是因为他们使用的是 ClientLogin 吗?
- 他们正在使用
com.google.api.services.calendar.model.Calendar. 有什么区别com.google.api.services.calendar.Calendar?
我的目标平台是安卓。我应该使用第一个示例还是第二个示例中的方法?