fastwhale / yii2-we-work
Yii2 微信工作 SDK
1.2.6.2
2024-07-03 03:38 UTC
Requires
- php: ^7.1
- yiisoft/yii2: ~2.0.0
- dev-master
- 1.2.6.2
- 1.2.6.1
- 1.2.6.0
- 1.2.5.9
- 1.2.5.8
- 1.2.5.7
- 1.2.5.6
- 1.2.5.5
- 1.2.5.4
- 1.2.5.3
- 1.2.5.2
- 1.2.5.1
- 1.2.5.0
- 1.2.4.9
- 1.2.4.8
- 1.2.4.7
- 1.2.4.6
- 1.2.4.5
- 1.2.4.4
- 1.2.4.3
- 1.2.4.2
- 1.2.4.1
- 1.2.4.0
- 1.2.3.9
- 1.2.3.8
- 1.2.3.7
- 1.2.3.6
- 1.2.3.5
- 1.2.3.4
- 1.2.3.3
- 1.2.3.2
- 1.2.3.1
- 1.2.3
- V1.2.2
- V1.2.1
- V1.2.0
- V1.1.9
- V1.1.8
- V1.1.7
- V1.1.6
- V1.1.5
- V1.1.4
- V1.1.3
- V1.1.2
- V1.1.1
- V1.1.0
- V1.0.9
- V1.0.8
- V1.0.7
- V1.0.6
- V1.0.5
- V1.0.4
- V1.0.3
- V1.0.2
- V1.0.1
- V1.0.0
This package is auto-updated.
Last update: 2024-09-03 03:59:37 UTC
README
Yii2 微信工作 SDK
安装
安装此扩展的首选方式是通过Composer。
运行以下命令:
php composer.phar require --prefer-dist fastwhale/yii2-we-work "*"
或者在你的composer.json
文件的require部分添加:
"fastwhale/yii2-we-work": "*"
to the require section of your composer.json
file.
使用方法
一旦扩展被安装,只需在你的代码中使用它即可:
/** @var Work $workApi */ $workApi = \Yii::createObject([ 'class' => Work::className(), 'corpid' => $corpid, 'secret' => $secret, ]); /** @var Work $agentApi */ $agentApi = \Yii::createObject([ 'class' => Work::className(), 'corpid' => $corpid, 'secret' => $agentSecret, ]); /** @var ServiceWork $serviceWork */ $serviceWork = \Yii::createObject([ 'class' => ServiceWork::className(), 'suite_id' => $suiteId, 'suite_secret' => $suiteSecret, 'suite_ticket' => $suiteTicket, 'auth_corpid' => $authCorpid, 'permanent_code' => $permanentCode, ]); /** @var ServiceProvider $serviceProvider */ $serviceProvider = \Yii::createObject([ 'class' => ServiceProvider::className(), 'provider_corpid' => $providerCorpid, 'provider_secret' => $providerSecret, ]);