Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.
++++