The reference for downloadUrl states that the link exists for a short amount of time. How long is this roughly? Minutes, hours, days?
https://developers.google.com/drive/v2/reference/files#downloadUrl
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would not rely on this URL for more than minutes or hours, but in reality it is currently stable for a day or so. This is subject to change, so best to get the URL directly before downloading.
Edit: The difference between this
downloadURLand thewebContentLinkis that thewebContentLinkuses authorization from the user’s browser cookie, thedownloadURLrequires an authorized API request (using OAuth 2.0).