如何使用Kotlin从Google云端硬盘获取信息?

时间:2018-10-17 19:05:19

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

如何从Google云端硬盘读取数据,例如文件名等?

我想使用Kotlin在Google云端硬盘中获取文件名,链接和一本书第一页的图片(如果可能)。

1 个答案:

答案 0 :(得分:0)

Google云端硬盘具有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完美配合。