We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minimal code-snippet showcasing the problem
authentication_client = AuthenticationClient( app_id='x', app_host="x", app_secret='x', ) token = "x" authentication_client.get_user_info_by_access_token(token)
返回用户资料
return session.request(method=method, url=url, **kwargs) E TypeError: request() got an unexpected keyword argument 'token'
我看了下代码,应该在ProtocolHttpClient的request方法内添加如下内容:
ProtocolHttpClient
if "token" in kwargs: headers["authorization"] = "Bearer %s" % kwargs.pop("token")
添加后可以正常调用该方法。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Minimal code-snippet showcasing the problem
Expected behavior
返回用户资料
Actual behavior
我看了下代码,应该在
ProtocolHttpClient
的request方法内添加如下内容:添加后可以正常调用该方法。
The text was updated successfully, but these errors were encountered: