【发布时间】: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
如何从 Google Drive 中读取文件名等数据?
我想使用 Kotlin 在 Google Drive 中获取文件名、链接和图书首页的图片(如果可能的话)。
【问题讨论】:
标签: android-studio kotlin google-drive-api google-drive-android-api google-drive-realtime-api
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 完美配合。
【讨论】: