Python 快速學習筆記本 -3 Google Gmail API

首先說明我使用的版本是
  • Anaconda 1.9.12
  • 編輯器 Visual Code
如何安裝 Google Data Python Library 請參考:

在 Anaconda 下 安裝:請參考

conda install -c conda-forge google-api-python-client
conda install -c conda-forge google-auth-oauthlib

安裝成功後可以先用


這裡有 Sample Program 先測試環境會不會過。這篇可以讓設計師了解 Google 的 login 認證過程,會選用  Gmail 的 Sample 主要是程試比較短,一目瞭然。

或是用 Python HTTP server 來試


但是在 window 環境下 要啟動 Python simplehttpserver 請用以下指令:

python -m http.server 8000

如何讀 Gmail



留言

這個網誌中的熱門文章

Arduino 模擬 Modbus Slave

Arduino IDE 1.6.5 + BH1750 + CD74HC4067 多工器

【輕鬆工作家】使用 3D 印表機 製作一台 Arduino CNC GRBL 繪圖機