获取请求回调python
我需要从授权获取请求中获得代码。我有这个:
r = requests.get(endpoint_auth,params=query_params)
url=r.url
webbrowser.open(url, new=0, autoraise=True)
当我授权自己时,我会重定向到我在应用程序设置中指定的重定向URL。但是我没有得到授权代码的响应,以后我需要做任何事情。如何为此获得回调?
我该怎么做?
I need to get a code from an authorization get requests. I have this:
r = requests.get(endpoint_auth,params=query_params)
url=r.url
webbrowser.open(url, new=0, autoraise=True)
When I authorize myself I get redirected to the redirect url I specified in the app settings. But I don't get the response with the authorization code which I need later for doing anything. How can I get a callback for that?
How would I do that ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在上面使用jupyter。
我切换到Visual Studio代码,并能够通过烧瓶解决核心问题。
I was using Jupyter above.
I switched to Visual Studio Code and was able to resolve the core issue with Flask.