【问题标题】:How can I get the Pinterest API to accept my redirect URL?如何让 Pinterest API 接受我的重定向 URL?
【发布时间】:2023-03-21 13:56:01
【问题描述】:

我正在尝试在 node.js 中构建一个通过其 API 连接到 Pinterest 的应用程序。我可以通过 Postman 获取访问令牌并在单用户模式下测试我的应用程序,但我无法合并 OAuth2 来为第二个用户测试我的应用程序。我在 developer.pinterest.com 上的代码和设置的每个配置都会产生错误“提供的 redirect_uri ... 与我注册的任何重定向 URI 都不匹配。”

我在 developers.pinterest.com 上注册了我认为正确的回调 URL——许多变体,带有或不带有斜杠。我的回调是通过 https 托管的。

我尝试在我的服务器代码 (node.js) 中并通过浏览器地址栏调用 Pinterest 的身份验证 URL OAuth2。

https://api.pinterest.com/oauth/?response_type=code&redirect_uri=https://www.outfinterest.com/auth/pinterest/callback/&client_id=5042375080944909391&scope=read_public&state=true

我尝试通过以我身份登录 Pinterest 的浏览器以及以我应用的注册测试员身份登录的浏览器进行身份验证。

我必须做什么才能让 Pinterest 接受我的回调 URL?

在通过 OAuth2 授权之前,我是否需要提交我的应用以供批准?

【问题讨论】:

    标签: node.js oauth-2.0 pinterest


    【解决方案1】:

    我通过将在 developer.pinterest.com 上注册的 URL 设置为我需要的 URL 来解决问题,然后使用应用设置重新加载页面。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-09-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-03
      • 2014-12-08
      相关资源
      最近更新 更多