Cách đây 3 năm#1
Ví dụ mình có một link như sau :
drive.google.com/file/d/abcdef/view?usp=drivesdkĐể get được link download thì ta có thể lấy id file cần download và dán vào link này :
drive.google.com/uc?export=download&id=<id file>Ex:
drive.google.com/uc?export=download&id=abcdefVới cách này chúng ta có thể get được những file nhẹ từ google drive. Để có thể get được những file nặng thì chúng ta có thể dùng google drive api.
www.googleapis.com/drive/v3/files/<id file>?alt=media&key=<key>Ex:
www.googleapis.com/drive/v3/files/abcdef?alt=media&key=AIzaSyB02NumcZevgsLAODGYBqBJmjJdQeVTrrwVới
abcdef là id file.
Key thì các bạn có thể dùng key mình đã tạo sẵn để dùng hoặc vào
https://console.cloud.google.com/apis/ để tạo.