justcode.ikeepstudying.com
Python 读取gmail, Python 搜索gmail, Python操作gmail, How to access Gmail using Python - Just Code
步骤1:开启Gmail API 中文版: 开启Gmail API 首先,您需要启用Gmail API并从您的Google帐户获取所需的OAuth凭据。步骤如下所示。 1。使用此向导可以在Google Developers Console中创建或选择一个项目,然后自动打开API。单击“继续(Continue)”,然后单击“凭据(credentials)”。 2。在 “添加凭据(Add credentials)” 页面上,单击“ 取消(Cancel)”按钮。 3。在页面左边,选择OAuth同意屏幕 (OAuth consent screen) 标签。选择一个电子邮件地址,输入产品名称(如果尚未设置),然后单击保存(Save)按钮。 4。选择“ 凭据(credentials)”标签,点击“ 创建凭据(Create credentials)”按钮,然后选择OAuth客户端ID (Auth client ID)。 5。选择应用程序类型“ 其他 (Other)”,输入名称“ Gmail API快速入门”,然后单击“ 创建(Create)”按钮。 6。单击“ 确定(OK)”关闭出现的对话框。 7。点击客户端ID右侧的Download JSON按钮。 8。将此文件移至您的工作目录,并将其重命名为client_secret.json。 英文版: Turning on the Gmail api You first need to enable Gmail […]
Gideon