imap.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:Fetch 作者: bourdakos1 项目源码 文件源码
def authenticate(self, url, consumer, token):
        if consumer is not None and not isinstance(consumer, oauth2.Consumer):
            raise ValueError("Invalid consumer.")

        if token is not None and not isinstance(token, oauth2.Token):
            raise ValueError("Invalid token.")

        imaplib.IMAP4_SSL.authenticate(self, 'XOAUTH',
            lambda x: oauth2.build_xoauth_string(url, consumer, token))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号