【发布时间】:2016-04-04 18:49:45
【问题描述】:
我在尝试获取新的刷新令牌时收到此错误:
{"error"=>"invalid_request", "error_description"=>"必填参数 缺少:grant_type"}
这是我用来生成请求的代码:
HTTParty.post("https://accounts.google.com/o/oauth2/token",
{
client_id: Figaro.env.google_client_id,
client_secret: Figaro.env.google_client_secret,
refresh_token: Figaro.env.google_client_refresh_token,
grant_type: "refresh_token"
})
尽管包含了 grant_type 参数,但我仍然收到错误消息。任何想法为什么?
【问题讨论】:
标签: ruby youtube-api httparty