Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/391.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在哪里可以找到Google日历API的版本?_Java_Android Studio_Google Api_Google Calendar Api_Google Api Java Client - Fatal编程技术网

Java 在哪里可以找到Google日历API的版本?

Java 在哪里可以找到Google日历API的版本?,java,android-studio,google-api,google-calendar-api,google-api-java-client,Java,Android Studio,Google Api,Google Calendar Api,Google Api Java Client,我想在我的Android Studio项目中使用Google日历API。我必须把它包括在我的Gradle.文件中 compile('com.google.apis:google-api-services-<API>-<VERSION>') { exclude group: 'org.apache.httpcomponents' compile('com.google.api:googleapi服务--'){ 排除组:“org.apache.httpco

我想在我的Android Studio项目中使用Google日历API。我必须把它包括在我的Gradle.文件中

 compile('com.google.apis:google-api-services-<API>-<VERSION>') {
        exclude group: 'org.apache.httpcomponents'
compile('com.google.api:googleapi服务--'){
排除组:“org.apache.httpcomponents”

但是我在任何地方都找不到Google Calendar Api“版本”

该信息最实际的位置可能是发现Api,然后是指向该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"