1

How to read data from Google Drive, such as file name, etc.?

I want to get the file name, the link and the picture of the first page of a book (if it's possible) in Google Drive using Kotlin.

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
KOTL NIAS
  • 127
  • 4
  • 11

1 Answers1

1

Google Drive has a REST API, check the documentation here:
https://developers.google.com/drive/api/v3/about-sdk

Specifically, there is a service to search files:
https://developers.google.com/drive/api/v3/search-parameters

In Android you can consume REST API using Retrofit:
https://square.github.io/retrofit/

It works perfectly with Kotlin.

Max Cruz
  • 1,215
  • 13
  • 17