如何获得访问令牌访问Pinterest的阿比 [英] How to get access token for access Pinterest Api
问题描述
我用Google搜索和搜索上的计算器,但无法找到答案。
I have Googled and searched on stackoverflow but could not find the answer.
我写一个应用程序,这需要访问Pinterest的API。
这是我的github回购: https://github.com/kellan/pinterest.api.php一>
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);
但我不知道在哪里可以找到$ CLIENT_ID和$ client_secret?
But i dont know where to find $client_id and $client_secret?
推荐答案
转到这里,点击的生成的,并得到一个访问令牌:的 https://developers.pinterest.com/tools/access_token/
例如:Get使用状态:<一href=\"https://api.pinterest.com/v1/me/pins/?access_token=TOKEN&fields=id,creator,note&limit=2\" rel=\"nofollow\">https://api.pinterest.com/v1/me/pins/?access_token=TOKEN&fields=id,creator,note&limit=2
Example: get statuses using: https://api.pinterest.com/v1/me/pins/?access_token=TOKEN&fields=id,creator,note&limit=2
请参阅额外的参数和要求的文档: https://developers.pinterest.com/docs / API /概述/
See docs for extra parameters and requests: https://developers.pinterest.com/docs/api/overview/
这篇关于如何获得访问令牌访问Pinterest的阿比的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!