Access Gmail Imap with OAuth 2.0 Access token

后端 未结 4 2062
忘掉有多难
忘掉有多难 2021-02-02 00:52

I am using Google\'s Oauth 2.0 to get the user\'s access_token, but I dont know how to use it with imaplib to access inbox.

4条回答
  •  南笙
    南笙 (楼主)
    2021-02-02 01:54

    Currently you can use OAuth 1.0 to access Gmail over IMAP and SMTP, but OAuth 2.0 is not yet supported. Here is a link to more information: https://developers.google.com/google-apps/gmail/oauth_overview

提交回复
热议问题