我用 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/