api - 如何获取访问 token 以访问 Pinterest Api

标签 api pinterest

我用 Google 搜索并在 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?

最佳答案

转到此处,单击生成,然后获取访问 token :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/

关于api - 如何获取访问 token 以访问 Pinterest Api,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12870416/

相关文章:

javascript - flex 元素是否有可能与它们上方的元素紧密对齐?

c++ - 哪些并行计算 API 可以很好地利用套接字?

pinterest - 获取带有特殊字符的板的 Pinterest RSS feed

ios - 如何打开 Pinterest 和 Linked iOS 应用程序以分享内容?

java - 使用改造和 RXJava 2 的多个 API 调用

php - Pinterest 图片高度

android - 像 pinterest 这样的 Longpress 上下文菜单

php - woocommerce rest API 每次调用仅提供 10 个订单

ruby-on-rails - 使用基本身份验证集成测试 Rails API

javascript - 前端 API token 暴露