KOTL NIAS
KOTL NIAS

Reputation: 127

How to get information from Google Drive using Kotlin?

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.

Upvotes: 1

Views: 3496

Answers (1)

Max Cruz
Max Cruz

Reputation: 1375

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.

Upvotes: 1

Related Questions