Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ninjascl/gmail-app-script
A simple script to fetch gmail emails and send them to an external server using Google Apps Script
https://github.com/ninjascl/gmail-app-script
fastify gmail google-apps-script javascript
Last synced: 6 days ago
JSON representation
A simple script to fetch gmail emails and send them to an external server using Google Apps Script
- Host: GitHub
- URL: https://github.com/ninjascl/gmail-app-script
- Owner: NinjasCL
- License: mit
- Created: 2020-07-16T20:50:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-16T21:37:32.000Z (over 4 years ago)
- Last Synced: 2024-11-20T00:40:11.953Z (2 months ago)
- Topics: fastify, gmail, google-apps-script, javascript
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
# Gmail Google Apps Script
image:https://img.shields.io/badge/Ninjas-CL-green.svg?style=flat-square[Ninjas.cl]
image:https://img.shields.io/github/license/ninjascl/gmail-app-script.svg[MIT]## 🚀 Environment setup
### Requirements
- https://script.google.com/home[Google Apps Script]
### Installation
. Create a new project in _Google Apps Script_.
. Upload the code inside _action.gs.js_.
. Enable https://developers.google.com/apps-script/guides/services/advanced#enabling_advanced_services[Advanced Services].
. Configure _token_, _label_ and _endpoint_ constants.
. Ensure that some emails have the _label_ and are unread.
. Save and run (Need to give permissions first).### Example server
And example server made with https://www.fastify.io/[Fastify] was made
to demostrate usage. Ensure to configurate the project's tokens and endpoints.Use `make install` and `make serve` to run.
## 🤔 Project explanation
This is an small proof of concept. A simple gmail script that will fetch
unread emails with a specific label. Then sent them to an specific server endpoint
where you can process them further or save them to a database or another
place.++++
Made with ♥ by Ninjas.cl.
++++