android - How to get the direct download link of a file by google drive api v3 in java -
how direct download link of file google drive api v3 in java ?
hi all, i've worked google drive api in android week, used both android drive sdk , drive rest api java can't find way how how direct download link of file (anyone can read) on drive. i've try how url of file of google drive download in android it's not work. please me. thanks.
if want have direct download link of file, drivefile doesn't seem you're looking for. can use drive api web service instead. note you're still required authenticated use api.
check out download files section of documentation, there 3 ways download file.
- download file — files.get alt=media file resource
- download , export google doc — files.export
- link user file — webcontentlink file resource
another alternative use webcontentlink download file. however, available files binary content in drive.
Comments
Post a Comment