google-ads-api - (invalid_grant) 缺少代码验证器 google-ads-api
问题描述
正如OAuth Web 应用程序流程所建议的那样。
回调网址就像
https://xxxxxxx:9431/callback_gg/?state=OV8xxxxxx0Nda6B4xxdR6VtAcyBEH&code=4/pAFG4kRxxxx9qLR7Oaxe1-2LYClj7d1EvP7peblfpm5TMEragm1X0Knrs9yLRekxxxxxUC2EcXne_14A4&scope=https://www.googleapis.com/auth/adwords
我正在努力
#If the client opted to allow you to access their account, you will
#receive an authorization code in the response as a query string.
#This #can be used to retrieve an access and refresh token with the
#following #lines of code
flow.fetch_token(code=auth_code)
credentials = flow.credentials
但我犯了错误
oauthlib.oauth2.rfc6749.errors.InvalidGrantError: (invalid_grant) Missing code verifier.
我错过了什么吗?我对这个错误感到困惑,因为我正在关注 api doc
解决方案
推荐阅读
- file - 作为专家,有没有办法从 Gmail 或 Google 获取日志文件?
- ansible - 从 vShpere 内容库部署时的操作系统自定义
- javascript - 如何将包含 docx、ppt 或 xlsx 的 blob 转换为 javascript 或 react js 中的 PDF?
- c# - 在 Blazor WebAssembly 中动态或有条件地设置组件的布局页面
- jsf - 如何在对话框顶部显示日历?
- mongodb - 如何有效地获取mongodb记录中相关键的列表
- http - Youtube 的 PCAP 分析
- javascript - 如何从 react-chartjs-2 的画布中删除一条垂直线?
- typescript - 从 TypeScript 中的类获取自身属性的接口
- .net - Visual Studio 2019 的 nuget 数据包管理器中未显示实体框架