Files
job-board-notifications/job-notifier/andela-appscript/README.md

20 lines
997 B
Markdown

# Andela Apps Script (Gmail magic-link fetcher)
Deploy this as a Google Apps Script Web App under the Google account whose
Gmail receives the forwarded Andela login emails.
## Setup
1. https://script.google.com → New project → paste `Code.gs` in as `Code.gs`.
2. Edit `SECRET_KEY` (generate with `openssl rand -hex 16`) and `ALLOWED_EMAIL`
(the email typed into the Andela login form — your Outlook address, not Gmail).
3. Deploy → New deployment → Web app → Execute as **Me** → Who has access **Anyone**.
4. Authorize Gmail access when prompted, then copy the `/exec` URL.
5. Put that URL + the same SECRET_KEY + the same email into the Chrome
extension's Settings page.
6. Whenever you edit this file: Deploy → Manage deployments → Edit →
Version: New version → Deploy (saving alone does not update the live web app).
## Debugging
Run `debugLoginEmails` from the function dropdown in the editor, then check
Executions in the left sidebar for the Logger output.