+
Skip to content

Conversation

LitoMore
Copy link
Contributor

Breaking

Remove fake_https option, use hooks instead.

Usage

client = fanfou.XAuth(
    consumer,
    'username',
    'password',
    https=True,
    hooks={
        'base_string': lambda s: s.replace('https', 'http')
    }
)

fake_https is not a good variable name. Our request is still HTTPS, but the base string used in the OAuth signing process is different from the standard process.

The name hooks is more expressive of specific functions, and we can also make more customized changes through hooks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载