I'm having a hard time implementing a script using Google Script to export and download a spreadsheet. First, I create the spreadsheet using the Google Drive API, which is completed successfully. Then I'm trying to export the spreadsheet to a Microsoft Excel document and download it using the Google Drive API. I've tried the HTTP request (link below) and also calling the method export from the API. The best I've got is a 200 response from the HTTP request but no download at all. I ran out of ideas and tests.
Please, any suggestion or solution will be highly appreciated!
Thanks in advance!
Drive.Files.export(spreadsheetId, 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', {"alt":"media","client_secret":[client_secret_key]});