如何获得访问令牌访问Pinterest的阿比 [英] How to get access token for access Pinterest Api

查看:208
本文介绍了如何获得访问令牌访问Pinterest的阿比的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用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/tool​​s/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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆