api - Kitsu API 身份验证返回无效授权
问题描述
我正在尝试弄清楚如何使用Kitsu API进行调用,例如更新条目等。问题是我已经在努力进行身份验证了。根据文档,对于授权类型密码,以下内容就足够了:
curl -X POST -d "grant_type=password&username=<myusername>&password=<mypassword>" https://kitsu.io/api/oauth/token
然而,它导致
{"error":"invalid_grant","error_description":"The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client."}
错误似乎是这种授权类型不存在(不再存在),所以我对现在如何继续感到困惑。
解决方案
经过一番反复试验,我得出结论认为 API 文档包含一些缺陷。而不是<username>
它应该是<email>
,非常令人困惑/烦人......
推荐阅读
- blender - Blender UV Mapping,纹理的连贯性
- vba - 如果 Vlookup 出现错误,如何在 vba 宏中进行验证
- string - 字符后的子字符串
- azure - AzurePowerShell@4 - powershell 命令无法在 azure 管道上执行
- azure - Azure 函数未执行。每次都拒绝访问
- python - 在语义中引发异常后,是否可以继续使用其他规则进行解析?
- sql - 如何将以下 SQL 语句转换为更新语句
- git - 在自托管 git repo 上使用 git pull 请求的工作流程
- javascript - 窗口未定义,Vue 平滑滚动 - Nuxt.js
- firefox - Createjs 和 Firefox 72