auth.py 文件源码

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

项目:fanfou-py 作者: akgnah 项目源码 文件源码
def access_token(self, oauth_token=None, oauth_verifier=None):
        self.oauth_token = oauth_token or self.oauth_token
        args = {'oauth_verifier': oauth_verifier} if oauth_verifier else {}  # if callback is oob
        resp = self.oauth_request(self.access_token_url, 'GET', args)
        oauth_token = dict(parse.parse_qsl(resp.read().decode()))
        self.oauth_token = {'key': oauth_token['oauth_token'], 'secret': oauth_token['oauth_token_secret']}
        return self.oauth_token
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号