我在哪里可以找到 Google 日历 API 的版本?
Where can i find the version of the Google Calendar API?
我想为我的 Android Studio 项目使用 Google 日历 API。我必须将其包含在我的 Gradle.File
中
compile('com.google.apis:google-api-services-<API>-<VERSION>') {
exclude group: 'org.apache.httpcomponents'
但我在任何地方都找不到 Google 日历 Api“版本”
该信息最准确的位置可能是发现 api,然后 link 到 api
的直接发现文件
https://discovery.googleapis.com/discovery/v1/apis
这会给你以下信息
{
"kind": "discovery#directoryItem",
"id": "calendar:v3",
"name": "calendar",
"version": "v3",
"title": "Google Calendar API",
"description": "The Google Calendar API lets you manage your calendars and events.",
"discoveryRestUrl": "https://calendar-json.googleapis.com/$discovery/rest?version=v3",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "http://code.google.com/apis/calendar/v3/",
"preferred": true
},
然后您可以仔细检查 api 的 discoveryRestUrl。
https://calendar-json.googleapis.com/$discovery/rest?version=v3
其中包含我认为您可以在您的图书馆中使用的流动条目
"name": "calendar",
"version": "v3"
我想为我的 Android Studio 项目使用 Google 日历 API。我必须将其包含在我的 Gradle.File
中 compile('com.google.apis:google-api-services-<API>-<VERSION>') {
exclude group: 'org.apache.httpcomponents'
但我在任何地方都找不到 Google 日历 Api“版本”
该信息最准确的位置可能是发现 api,然后 link 到 api
的直接发现文件https://discovery.googleapis.com/discovery/v1/apis
这会给你以下信息
{
"kind": "discovery#directoryItem",
"id": "calendar:v3",
"name": "calendar",
"version": "v3",
"title": "Google Calendar API",
"description": "The Google Calendar API lets you manage your calendars and events.",
"discoveryRestUrl": "https://calendar-json.googleapis.com/$discovery/rest?version=v3",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "http://code.google.com/apis/calendar/v3/",
"preferred": true
},
然后您可以仔细检查 api 的 discoveryRestUrl。
https://calendar-json.googleapis.com/$discovery/rest?version=v3
其中包含我认为您可以在您的图书馆中使用的流动条目
"name": "calendar",
"version": "v3"