如何为Pinterest获取OAuth访问令牌?

Dhr*_*ruv 10 pinterest

我正在访问Pinterest API以使用此URL获取用户的信息,但我找不到如何为Pinterest生成访问令牌.

根据这篇博客文章,它说

Pinterest使用OAuth2对用户进行身份验证

你能否告诉我,从哪里可以为Pinterest生成OAuth访问令牌?

Ben*_*ong 8

首先,注册应用程序并设置重定向URI:

https://developers.pinterest.com/manage/

然后,在Signature Tester下找到您的客户机密码:

https://developers.pinterest.com/tools/signature/

将用户带到OAuth对话框,如下所示:

https://www.pinterest.com/oauth/?consumer_id=[client_id]&response_type=[code_or_token]&scope=[list_of_scopes]

如果是令牌的响应类型,则它将作为重定向URI中的哈希附加.

如果响应类型是代码,请参阅下面的帖子,了解有关如何交换令牌代码的详细信息:

什么是Pinterest中的auth代码端点?


Pri*_*ain 4

登录时,您需要在下拉菜单中的管理器应用程序选项下注册客户端应用程序

或者

https://developers.pinterest.com/manage/

注册您的应用程序并获得 AppID。

这遵循您在此链接中的流程

http://wiki.gic.mx/pinterest-developers/

希望这可以帮助