Indeed, not a dull moment
I just started to migrate some projects from DriveApp to Drive.Files, so I will need to understand if I'd be affected
I am using the following code in GAS to fetch the content of a file (Text/Json content)
They don't mention the downloadUrl, but not sure if I understand the whole change yet
function getFileContent(fileId, mimeType) {
return UrlFetchApp.fetch( Drive.Files.get(fileId).downloadUrl, {
'contentType': mimeType,
'headers': {
'Authorization': 'Bearer ' + ScriptApp.getOAuthToken()
}
}).getContentText();
}
Would that be OK, or there is a better/new way?