Henry Thompson
Henry Thompson

Reputation: 2481

Google Drive API and Google Apps Script

I've made an Android app which uses the Google Drive API to list the files in a user's Drive and open the files. Whilst most files open as expected, there is an issue when trying to open Google Apps Script project files: the file.getDownloadUrl() returns null, so I am unable to retrieve it from Drive.

Whilst I can understand why the Google Drive API does not return a download URL for the projects, what I was wondering is if there was any way of opening the files in the project via the Drive API (or any other Android-compatible API). The app is a code editor, so this would be an extremely useful feature to have! Thanks everyone.

Upvotes: 0

Views: 932

Answers (1)

smokybob
smokybob

Reputation: 662

Google Apps Script projects can't be downloaded but exported.

Basically you can use the export link of the Drive.File and get a JSON object containing all the files of the Google Apps Script Project.

More details are available in the Google Apps Script Documentation.

Upvotes: 2

Related Questions