isudakoff / yii2-pinterest-authclient
Pinterest extension for using via yii2-authclient
1.0.1
2017-08-21 14:38 UTC
Requires
- yiisoft/yii2-authclient: ~2.0@dev
This package is auto-updated.
Last update: 2024-10-29 04:58:54 UTC
README
This extension adds Pinterest OAuth2 supporting for yii2-authclient.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist isudakoff/yii2-pinterest-authclient "*"
or add
"isudakoff/yii2-pinterest-authclient": "*"
to the require
section of your composer.json.
Usage
You must read the yii2-authclient docs
Register your application in Pinterest
and add the Pinterest client to your auth clients.
'components' => [ 'authClientCollection' => [ 'class' => 'yii\authclient\Collection', 'clients' => [ 'pinterest' => [ 'class' => 'isudakoff\authclient\Pinterest', 'clientId' => 'pinterest_app_id', 'clientSecret' => 'pinterest_app_secret', ], // other clients ], ], // ... ]