如何从Google云端硬盘读取数据,例如文件名等?
我想使用Kotlin在Google云端硬盘中获取文件名,链接和一本书第一页的图片(如果可能)。
答案 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完美配合。