首页 > 解决方案 > 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."}

错误似乎是这种授权类型不存在(不再存在),所以我对现在如何继续感到困惑。

标签: apicurl

解决方案


经过一番反复试验,我得出结论认为 API 文档包含一些缺陷。而不是<username>它应该是<email>,非常令人困惑/烦人......


推荐阅读