kvbogdanov/yii2-instagram-authclient

Instagram extenion for using via yii2-authclient

v1.0 2015-01-25 19:16 UTC

This package is auto-updated.

Last update: 2024-05-20 21:33:26 UTC


README

This extension adds Instagram OAuth2 supporting for yii2-authclient.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist kvbogdanov/yii2-instagram-authclient "*"

or add

"kvbogdanov/yii2-instagram-authclient": "*"

to the require section of your composer.json.

Usage

You must read the yii2-authclient docs

Register your application in Instagram

and add the Instagram client to your auth clients.

'components' => [
    'authClientCollection' => [
        'class' => 'yii\authclient\Collection',
        'clients' => [
            'instagram' => [
                'class' => 'kvbogdanov\authclient\Instagram',
                'clientId' => 'instagram_client_id',
                'clientSecret' => 'instagram_client_secret',
            ],
            // other clients
        ],
    ],
    // ...
 ]