Pinterest API:授权代码错误修复?

问题描述 投票:1回答:1

在浏览器中使用此代码来获取访问代码...

https://api.pinterest.com/oauth/?response_type=code&redirect_uri=https://example.com/redirect.htm&client_id=appid&scope=read_public,write_public&state=768uyFys

获取对话框,按OK,然后出现此错误...。有人知道为什么吗?

{“状态”:“失败”,“代码”:12,“数据”:“路径:/ oauth / \ nparams:\ nAuthError(代码= 500,消息='拨号TCP 127.0.0.1:22000:连接:连接被拒绝')“,”消息“:”我们这边出了点问题。很抱歉。“,” endpoint_name“:” oauth_connect“}

api pinterest
1个回答
0
投票

我遇到这样的问题。但您需要将此网址放在Google浏览器中,并记住Pinterest应用中添加的Redirect_url以及该网址调用了公共Get方法。您将定义日志以检查响应。

https://api.pinterest.com/oauth/?state=9750187663&scope=read_public&client_id=abc&redirect_uri=https://9fa6caa3.ngrok.io/laravel/public/pinToken&response_type=code

您将得到结果数组('状态'=>'9750187663','代码'=>'15a1bcfb012abc1',)

© www.soinside.com 2019 - 2024. All rights reserved.