Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gmail Push Notify を受け取る #1

Open
sinmetal opened this issue Dec 10, 2020 · 1 comment
Open

Gmail Push Notify を受け取る #1

sinmetal opened this issue Dec 10, 2020 · 1 comment

Comments

@sinmetal
Copy link
Member

https://developers.google.com/gmail/api/guides/push を設定して、取得する。

確かめること

  • 指定した条件のメールだけ取りたいができるのか?
@sinmetal
Copy link
Member Author

LabelIDでフィルタリングできる。
LabelIDは https://developers.google.com/gmail/api/reference/rest/v1/users.labels/list 叩いた結果を見れば分かる

sinmetal added a commit that referenced this issue Dec 11, 2020
RefreshTokenは事前にLocalで実行してGCSに保存しておいて、後で使う感じにしてみた
sinmetal added a commit that referenced this issue Dec 11, 2020
sinmetal added a commit that referenced this issue Jan 1, 2021
sinmetal added a commit that referenced this issue Jan 7, 2021
history.listだと最新のmessageが取れなかったので、notificationが飛んできたら、message.listで最新からの一覧を取得してしまった方が手っ取り早い感じがする。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant