【问题标题】:How to get access token for access Pinterest Api如何获取访问令牌以访问 Pinterest Api
【发布时间】:2016-03-09 21:46:13
【问题描述】:

我在 stackoverflow 上进行了谷歌搜索和搜索,但找不到答案。

我正在编写一个应用程序,这需要访问 Pinterest API。 这是我的 github 仓库:https://github.com/kellan/pinterest.api.php

$p = new Pinterest_API();
$p->fetch_access_token($client_id, $client_secret, $username, $password);
$resp = $p->some_api_call($args);

但我不知道在哪里可以找到 $client_id 和 $client_secret?

【问题讨论】:

  • @Emil 很怀疑,因为他链接的 github 存储库不是由 Pinterest 开发的,它是第 3 方,Kellan Elliott-McCrea 的。

标签: api pinterest


【解决方案1】:

到这里,点击生成,并获得一个访问令牌:https://developers.pinterest.com/tools/access_token/

示例:使用https://api.pinterest.com/v1/me/pins/?access_token=TOKEN&fields=id,creator,note&limit=2获取状态

有关额外参数和请求,请参阅文档:https://developers.pinterest.com/docs/api/overview/

【讨论】:

    【解决方案2】:

    据我所知,Pinterest API 已下架。我什至收到了关于我的 Pinterest Chrome 扩展程序的删除通知。

    【讨论】:

      【解决方案3】:

      是的,Pinterest API 已下架。我所有的应用程序也都受到了影响。

      这个 v1 api 链接现在只显示连字符,破折号计数

      http://api.pinterest.com/v1/urls/count.json?callback=receiveCount&url=http://facebook.com

      我们只能等它回来了。我已为您的问题添加了书签,并会在其回复时尝试更新您。

      【讨论】:

      • 很好,感谢您通知我们它再次起作用,+1 ;)
      • 嘿 Fedmich 我需要一些关于通过 api 访问 pinterest 的指针..任何指针?与搜索特别相关
      • 嗨,Sudh,目前,还没有 Pinterest API 的官方文档。这是无证的,是通过查看他们的 pinterest 按钮拍摄的。
      猜你喜欢
      • 1970-01-01
      • 2016-09-17
      • 2015-12-05
      • 2013-09-06
      • 2018-02-17
      • 2015-05-11
      • 2017-02-14
      • 1970-01-01
      • 2013-03-02
      相关资源
      最近更新 更多