/** * Google Drive client */ class Drive { /** * Save image to Google Drive * @param {Blob} image Image blob * @return {string} File ID of the saved image */ static saveImage(image) { var folder = DriveApp.getFolderById(CONFIG.DRIVE_FOLDER_ID); var file = folder.createFile(image); return file.getId(); } }