Kitsu API身份验证返回无效授权

时间:2019-04-23 11:08:55

标签: api curl

我正在尝试弄清楚如何使用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."}

错误使该赠款类型似乎不存在了,所以我对现在的处理方式感到困惑。

1 个答案:

答案 0 :(得分:0)

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