dovechen / yii2-douyin
Yii2 Douyin SDK
V0.0.2
2021-11-17 23:27 UTC
Requires
- php: >=7.1
- yiisoft/yii2: ~2.0.0
README
Yii2 Douyin SDK
安装
安装此扩展的首选方式是通过 composer。
可以运行以下命令:
php composer.phar require --prefer-dist dovechen/yii2-douyin "*"
或者将以下内容添加到你的 composer.json
文件的 require 部分中:
"dovechen/yii2-douyin": "*"
to the require section of your composer.json file.
使用
扩展安装完成后,只需在代码中使用即可
/** @var \dovechen\yii2\douyin\Douyin $api */ $api = \Yii::createObject([ 'class' => \dovechen\yii2\douyin\Douyin::class, 'client_key' => $client_key, 'client_secret' => $client_secret, ... ]);