Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Oauth 如何从Pinterest获取授权代码_Oauth_Pinterest - Fatal编程技术网

Oauth 如何从Pinterest获取授权代码

Oauth 如何从Pinterest获取授权代码,oauth,pinterest,Oauth,Pinterest,我正在尝试从Pinterest获取授权代码 我查过了,他们说要提出以下要求: 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 我

我正在尝试从Pinterest获取授权代码

我查过了,他们说要提出以下要求:

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
我换衣服的地方

  • 重定向\u uri=http://localhost&
  • client\u id=to\u MyClient\u id&
其余参数保持不变,我点击了邮递员的请求

我得到的答复是:

{
  "status": "failure",
  "message": "Invalid parameters.",
  "code": 1,
  "data": "Missing required field 'scope'"
}
我该怎么做

 https://api.pinterest.com/oauth/?
 state=1234567890&scope=read_public&client_id={your app 
 id}&redirect_uri=https://www.google.com&response_type=code
尝试此参数顺序(状态为第一,范围等)!!非常奇怪,真的!!只需剪切范围并粘贴到最后,您就会回复说缺少另一个字段,并反复更改相同的参数顺序,直到获得网站HTML

尝试此参数顺序(状态为第一,范围等)!!非常奇怪,真的!!只需剪切范围并粘贴到最后,您就会回复说缺少另一个字段,并反复更改相同的参数顺序,直到获得网站HTML