【问题标题】:How to get information from Google Drive using Kotlin?如何使用 Kotlin 从 Google Drive 获取信息?
【发布时间】:2018-10-17 19:05:18
【问题描述】:

如何从 Google Drive 中读取文件名等数据?

我想使用 Kotlin 在 Google Drive 中获取文件名、链接和图书首页的图片(如果可能的话)。

【问题讨论】:

    标签: android-studio kotlin google-drive-api google-drive-android-api google-drive-realtime-api


    【解决方案1】:

    Google Drive 有一个 REST API,请在此处查看文档:
    https://developers.google.com/drive/api/v3/about-sdk

    具体来说,有一个搜索文件的服务:
    https://developers.google.com/drive/api/v3/search-parameters

    在 Android 中,您可以使用 Retrofit 使用 REST API:
    https://square.github.io/retrofit/

    它与 Kotlin 完美配合。

    【讨论】:

    • 是否有任何教程或更具体的解决我的问题的唯一必要步骤。
    • 其余 api 的问题是它不支持 appdata 文件夹。我们中的一些人需要迁移。
    猜你喜欢
    • 1970-01-01
    • 2013-11-22
    • 2014-03-31
    • 2018-05-25
    • 1970-01-01
    • 2021-02-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多