Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ae9is/appscripts
Miscellaneous Google Apps Script projects
https://github.com/ae9is/appscripts
google-apps-script
Last synced: 10 days ago
JSON representation
Miscellaneous Google Apps Script projects
- Host: GitHub
- URL: https://github.com/ae9is/appscripts
- Owner: ae9is
- License: mit
- Created: 2024-01-16T00:23:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-16T02:42:19.000Z (about 1 year ago)
- Last Synced: 2024-11-20T14:48:15.523Z (2 months ago)
- Topics: google-apps-script
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# appscripts
Miscellaneous Google Apps Script projects.
## Deployment
Example guide to deploy an endpoint that any app you make can access without needing to authenticate:
1. Go to https://script.google.com/ and create a new project
1. Copy and paste (and save!) your code into the new project's script, overwriting the contents
1. Select Deploy → New Deployment
1. In the New Deployment dialogue, click the gear next to "Select type" and choose "Web app"
1. Fill in the following settings and then Deploy
- Execute as: Me
- Who has access: Everyone
1. Copy your Deployment ID (api key) ** **Don't share this!** **Now that you've deployed your own api, you can enter the api key into your client app. For an example client app feel free to check out [subtitle-chan](https://github.com/ae9is/subtitle-chan), specifically [this hook](https://github.com/ae9is/subtitle-chan/blob/main/src/lib/useSubtitles.ts).
Don't share your Deployment ID with anyone you don't want accessing your endpoint! There is no protection with the above config.
Google Apps Script has a quota of 5000 requests per day for free user accounts. If you run out of quota, you can upgrade to a paid Google Workspace account (your quota will increase from 5k → 20k calls per day).
Note that web app url contains the Deployment ID (key) already, it's formatted like:
`https://script.google.com/macros/s//exec`