Git Product home page Git Product logo

gmail-exporter's Introduction

Gmail to Google Sheets Exporter

This script allows you to fetch email data from your Gmail account and store it in a Google Sheets document. The script is written in Go and uses the Gmail API and Google Sheets API for integration.

Prerequisites

Before running the script, ensure you have the following set up:

  1. Google Cloud Project: Create a Google Cloud project and enable the Gmail API and Google Sheets API.

    1. OAuth 2.0 Credentials: Obtain OAuth 2.0 credentials for your project to access Gmail and Google Sheets. You can follow the Google Cloud OAuth 2.0 setup guide to create and download your credentials JSON file. Note: This scripts expects the OAuth 2.0 credentials file to be saved to the credentials.json file within the same directory as the util binary but this can be overwritten with the CREDS_FILE_PATH environment variable.
  2. Google Sheets Document: Create a Google Sheets document that the email address associated with the OAuth 2.0 credentials has write access to. The ID need to be provided and can be found in the URL of the document, e.g. https://docs.google.com/spreadsheets/d/<ID>/edit.

Usage

Required Flow Secrets

  • gmailExporterSheetID: The ID of the Google Sheets document to write the data to. This can be pulled from the sheet's url.

Available Flow Executable Commands

# Open project in IDE
flow open goland
flow open vscode 
flow open github

# Run utility program
flow run login
flow run program

# Development Commands
flow run pre-commit
flow run intall-deps

gmail-exporter's People

Contributors

jahvon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.