kotchuprik / yii2-instagram-authclient
用于通过yii2-authclient使用的Instagram扩展
v1.0
2015-01-25 19:16 UTC
Requires
- yiisoft/yii2-authclient: ~2.0@dev
This package is not auto-updated.
Last update: 2024-09-23 10:13:30 UTC
README
本扩展为yii2-authclient添加了Instagram OAuth2支持。
安装
安装此扩展的最佳方式是通过composer。
运行以下命令之一:
php composer.phar require --prefer-dist kotchuprik/yii2-instagram-authclient "*"
或者将以下内容添加到您的composer.json的require部分:
"kotchuprik/yii2-instagram-authclient": "*"
require
使用方法
您必须阅读yii2-authclient的文档
在Instagram中注册您的应用(https://instagram.com/developer/clients/register)
并将Instagram客户端添加到您的认证客户端中。
'components' => [ 'authClientCollection' => [ 'class' => 'yii\authclient\Collection', 'clients' => [ 'instagram' => [ 'class' => 'kotchuprik\authclient\Instagram', 'clientId' => 'instagram_client_id', 'clientSecret' => 'instagram_client_secret', ], // other clients ], ], // ... ]