Algunas funciones que pueden ayudarte o ahorrarte algo de tiempo.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const urlFolderPrincipal = // Aqui colocas el ID del folder que almacenas las imagenes | |
| const urlBaseHTML = "https://drive.google.com/thumbnail?id="; | |
| /** | |
| * Method: obtenerIDs() | |
| * | |
| * Description: Examina los archivos de un folder especificado y | |
| * posteriormente obtiene los ids de cada uno de los archivos. | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function doGet(){ | |
| var template =HtmlService.createTemplateFromFile('index'); | |
| var html = template.evaluate(); | |
| return html; | |
| } | |
| function getList(){ | |
| var ss=SpreadsheetApp.getActiveSpreadsheet(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Para poder mostrar la pagina en la webapp | |
| function doGet() { | |
| var template = HtmlService.createTemplateFromFile('index'); | |
| var output = template.evaluate(); | |
| return output; | |
| } | |