wassa / wedoogift-client
0.2
2021-12-16 12:47 UTC
Requires
- ext-json: *
- guzzlehttp/guzzle: ^5.3.4
This package is auto-updated.
Last update: 2024-08-30 01:21:23 UTC
README
安装
composer require wassa/wedoogift-client
支持的功能
- 添加用户
- 列出存款
- 向用户创建分配(给💰💰💰)
用法
$reasonId = 1234; $userId = 5678; $valueToDistribute = 1; $wdg = new \Wassa\WeDooGift\WeDooGiftClient('<APIKEY>'); $wdg->init(); $wdg->addUser('John', 'Doe', 'john.doe@yourhosting.com'); // returns the user id $wdg->distribute($reasonId, 'Cool message', $userId, $valueToDistribute);
如果发生错误,所有方法都会抛出\Exception
。
待办事项
- 添加对生产环境的支持
许可证
您可以使用它,尽管它可能对您来说并不非常有用。您可以提交PR,但我们很可能会不处理它。