LoginSignup
16
11

More than 3 years have passed since last update.

Ex予約をすると自動的にGoogle カレンダーに登録する

Last updated at Posted at 2018-10-03

Ex予約時に自動的にGoogle カレンダーに登録

やりたい事

Ex予約時に自動送信で届くメールをもとに、カレンダーに登録する。
Google Apps Script を作成し、Gmail 内のメールを解析して Google カレンダーに追加する。

目的の振る舞い

予約完了メールの受信時
  • カレンダーにイベントとして追加
予約変更メールの受信時
  • 古いイベントをカレンダーから削除
  • 新しいイベントをカレンダーに追加
カレンダーへの登録形式
タイトル 新幹線:東京→京都
日時 2018/1/1 9:40 〜 2018/1/1 11:58
メモ のぞみ3号 7号車 8E席

実装方法

README:https://github.com/onagat/ex-yoyaku2google-cal
コード:https://github.com/onagat/ex-yoyaku2google-cal/blob/master/code.js

引用文献、引用コード

MITライセンスのもと公開されていたコードを使用し改変しました。foooomio氏に感謝申し上げます。
https://github.com/foooomio/ex-yoyaku

その他

なお、Google Apps Scriptの使い方については、
https://qiita.com/t_imagawa/items/47fc130a419b9be0b447
などをご覧ください。

16
11
12

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
11