PythonとGmail

野良Gmailアカウントを作る

そのGoogle cloudにアクセス

有効なAPIとサービスからGmailAPIを有効にする

認証情報から認証情報を作成を実行

JSONをダウンロードして、credential.jsonにする

OAuth同意画面のアプリの公開ステータスはテストにして、ユーザーの種類は外部

OAuthユーザー数の上限のテストユーザーに+ ADD USERSボタン押して野良アカウントを追加する
これで、プログラムから、野良アカウントのGmailを制御できるようになり、メールの制御ができます。

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny

タイトルとURLをコピーしました