获取请求回调python

发布于 2025-02-12 12:21:41 字数 287 浏览 0 评论 0原文

我需要从授权获取请求中获得代码。我有这个:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南巷近海 2025-02-19 12:21:42

我在上面使用jupyter。

我切换到Visual Studio代码,并能够通过烧瓶解决核心问题。

I was using Jupyter above.

I switched to Visual Studio Code and was able to resolve the core issue with Flask.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文