【发布时间】:2020-09-13 16:29:14
【问题描述】:
我正在尝试从 Pinterest 获取授权码。
我查看了the official docs,他们说要请求这个参数:
https://api.pinterest.com/oauth/?
response_type=code&
redirect_uri=https://mywebsite.com/connect/pinterest/&
client_id=12345&
scope=read_public,write_public&
state=768uyFys
我改变的地方
- redirect_uri=http://localhost&
- client_id=to_MyClient_Id&
其余参数不变,我在邮递员上提出了请求。
我得到的回应是:
{
"status": "failure",
"message": "Invalid parameters.",
"code": 1,
"data": "Missing required field 'scope'"
}
我该怎么做?
【问题讨论】: