How to get access token for access Pinterest Api

北城余情 提交于 2019-12-11 01:39:38

问题


I have Googled and searched on stackoverflow but could not find the answer.

I am writing an app, and this needs access to the Pinterest API. This is my github repo: 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);

But i dont know where to find $client_id and $client_secret?


回答1:


As far as I'm aware, the Pinterest API has been taken down. I even got a take-down notice on my Pinterest Chrome extension.




回答2:


Yep, Pinterest API has been taken down. All my apps were affected as well.

This v1 api link now only shows hyphen, dash on its count

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

We can only wait till its back. I bookmarked your question and will try to update you when its back.




回答3:


Go here, click Generate, and get an access token: https://developers.pinterest.com/tools/access_token/

Example: get statuses using: https://api.pinterest.com/v1/me/pins/?access_token=TOKEN&fields=id,creator,note&limit=2

See docs for extra parameters and requests: https://developers.pinterest.com/docs/api/overview/



来源:https://stackoverflow.com/questions/12870416/how-to-get-access-token-for-access-pinterest-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!