auth.py 文件源码

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

项目:fanfou-py 作者: akgnah 项目源码 文件源码
def xauth(self, username, password):
        args = {
            'x_auth_username': username,
            'x_auth_password': password,
            'x_auth_mode': 'client_auth'
        }
        resp = self.oauth_request(self.access_token_url, 'GET', args)
        oauth_token = dict(parse.parse_qsl(resp.read().decode()))
        return {'key': oauth_token['oauth_token'], 'secret': oauth_token['oauth_token_secret']}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号