I am currently trying to make an application that downloads files from Google Drive.
In the Google Drive SDK documentation I found an example method that should return a
You won't have a downloadlink if the file you are trying to download is a native google docs format. If that's the case you must look for the exportLinks.
You will have several export links, so you will have to choose which format suits you best : docx or odt for document for example
Might be late but I just downloaded from Google Drive using the following code:
var stream = service.HttpClient.GetStreamAsync(downloadUrl);
var result = stream.Result;
using (var fileStream = System.IO.File.Create(filePath))
{
result.CopyTo(fileStream);
}