简体   繁体   中英

How to upload and download files with the new Google drive REST API?

I'm working on an android project where by I need to integrate Google drive api. What I realised was that the Google drive api for android is depricated including examples I found and on their site they recommend the rest api but I've been unable to make sense of the examples they have on their site regarding the new rest api. I have searched everywhere for examples but no luck. I'll be grateful if someone helps me out. Thanks.

the Drive API REST client can be used instead:

repositories {
    mavenCentral()
}

dependencies {
    implementation "com.google.apis:google-api-services-drive:v3-rev136-1.25.0"
}

see the documentation .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM