Google App Scripts
Learn how to configure Google App Scripts for use with Filebase.
What are Google App Scripts?
1. Start by cloning the following GitHub repository:
2. In the main.js file, replace the following variable values to match your configuration:
main.js file, replace the following variable values to match your configuration:const bucket = 'FILEBASE BUCKET NAME';
const accessKeyId = "FILEBASE ACCESS KEY";
const secretAccessKey = "FILEBASE SECRET KEY";
const region = 'us-east-1';
const acl = 'private';3. Then, install Google Clasp with npm:
4. Login with Google to authenticate the workspace:
5. Next, open the Google App Scripts settings page and enable the Google Apps Script API:


6. Create the Google App Scripts project with the following commands:
7. Your project will be opened in your web browser. Select ‘Deploy’ to run your script.

8. Then select ‘New Deployment’. For the deployment type, select ‘API Executable’, then give your app a name and description.

9. Then select ‘Deploy’. You will be prompted to authorize access to the web app with your Google account.
10. Once authenticated, your app will deploy.

11. Then, select ‘Run’ from the script editor when viewing the main.gs file to run your script.
main.gs file to run your script.
Last updated