【问题标题】:Where can i find the version of the Google Calendar API?在哪里可以找到 Google Calendar API 的版本?
【发布时间】:2021-04-15 17:36:27
【问题描述】:

我想为我的 Android Studio 项目使用 Google Calendar API。我必须将它包含在我的 Gradle.File 中

 compile('com.google.apis:google-api-services-<API>-<VERSION>') {
        exclude group: 'org.apache.httpcomponents'

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

【问题讨论】:

    标签: java android-studio google-api google-calendar-api google-api-java-client


    【解决方案1】:

    该信息最活跃的位置可能是发现 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"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-12-18
      • 2023-01-26
      • 2022-08-09
      • 2020-04-13
      • 2013-07-03
      • 1970-01-01
      • 2017-01-23
      • 1970-01-01
      相关资源
      最近更新 更多