isudakoff / yii2-pinterest-authclient
用于通过 yii2-authclient 使用的 Pinterest 扩展
1.0.1
2017-08-21 14:38 UTC
Requires
- yiisoft/yii2-authclient: ~2.0@dev
This package is auto-updated.
Last update: 2024-09-29 04:44:57 UTC
README
此扩展为 yii2-authclient 添加了 Pinterest OAuth2 支持。
安装
安装此扩展的首选方式是通过 composer。
运行以下命令之一
php composer.phar require --prefer-dist isudakoff/yii2-pinterest-authclient "*"
或将以下内容添加到 composer.json 文件的 require
部分。
"isudakoff/yii2-pinterest-authclient": "*"
使用方法
您必须阅读 yii2-authclient 的 文档
在 Pinterest 中注册您的应用程序 (请点击)
并将 Pinterest 客户端添加到您的认证客户端中。
'components' => [ 'authClientCollection' => [ 'class' => 'yii\authclient\Collection', 'clients' => [ 'pinterest' => [ 'class' => 'isudakoff\authclient\Pinterest', 'clientId' => 'pinterest_app_id', 'clientSecret' => 'pinterest_app_secret', ], // other clients ], ], // ... ]