richweber / yii2-monexy
Monexy API 的 Yii 2 框架扩展
1.0.0
2015-01-25 14:22 UTC
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-09-13 10:39:04 UTC
README
安装扩展
建议使用 composer 安装扩展。
执行以下命令
php composer.phar require richweber/yii2-monexy "*"
或者
"richweber/yii2-monexy": "dev-master"
将以下内容添加到您的 composer.json
文件的 require
部分中。
应用程序配置
配置示例
'components' => [ ... 'monexy' => [ 'class' => 'richweber\monexy\Monexy', 'apiName' => 'testAPI', 'apiPassword' => 'password', 'requestType' => 'POST', 'contentType' => 'JSON', 'enableCrypt' => false, ], ... ],
获取自己的钱包余额
Yii::$app->monexy->balance();
文档
许可证
yii2-monexy 在 BSD 3-Clause 许可下发布。有关详细信息,请参阅捆绑的 LICENSE.md
文件。