Git Product home page Git Product logo

line_transfer_for_gas's Introduction

LINE transfer for Google App Script

Forward gmail emails that match the conditions to LINE Notify.
条件に一致するGMailメールをLINE Notifyへ転送します。

Overview:概要

GMailに届いたもののうち、条件に合ったものを自動でLINE Notifyに通知します。
このコードをGoogle App Scriptに設置し、トリガーで指定時間ごと実行させることで、Gmailの条件一致を検索し、LINE Notifyへの通知を行います。

Setting:設定方法

  1. LINE Notifyからアクセストークンを発行します。
  2. GMailで自分のメールアドレスを開設します。
  3. それとは別に判定条件メールアドレスを用意し、判定条件メールアドレスから自分のメールアドレスへ自動転送するように設定します。
  4. 自分のGoogle App Scriptにindex.gsを設置します。
  5. ⚙プロジェクト設定→スクリプト設定より以下を設定します。
CONDITION  判定条件メールアドレスを指定する
INTERVAL  監視間隔を指定する(分)
LINE_TOKEN  LINE Notifyのアクセストークンを指定する
  1. ⏰トリガーより以下を設定します。
実行する関数  main
デプロイ時に実行  Head
イベントのソースを選択  main
時間ベースのトリガータイプを選択  分ベースのタイマー
時間の間隔を選択(分) (INTERVALより短い数字を指定します)
エラー通知設定  毎日通知を受け取る
  1. 判定条件メールアドレスを送信元へ通知・設定します。

Use:使い道

家族間に関わる各種手続きからのメールをLINEで共有するなどに用います。

Reference article:参考記事

line_transfer_for_gas's People

Contributors

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