isudakoff / yii2-tumblr-authclient

用于通过 yii2-authclient 使用 Tumblr 扩展

1.0.1 2017-09-25 12:32 UTC

This package is auto-updated.

Last update: 2024-09-29 05:06:07 UTC


README

本扩展为 yii2-authclient 添加了对 Tumblr OAuth1 的支持。

安装

安装此扩展的首选方式是通过 composer

运行以下命令之一:

php composer.phar require --prefer-dist isudakoff/yii2-tumblr-authclient "*"

或者

"isudakoff/yii2-tumblr-authclient": "*"

将以下内容添加到您的 composer.json 文件的 require 部分。

使用方法

您必须阅读 yii2-authclient 的文档

在 Tumblr 上注册您的应用程序 (链接到 Tumblr OAuth 应用程序注册页面)

并将 Tumblr 客户端添加到您的认证客户端。

'components' => [
    'authClientCollection' => [
        'class' => 'yii\authclient\Collection',
        'clients' => [
            'tumblr' => [
                'class' => 'isudakoff\authclient\Tumblr',
                'consumerKey' => 'tumblr_app_id',
                'consumerSecret' => 'tumblr_app_secret',
            ],
            // other clients
        ],
    ],
    // ...
 ]