overtrue / youzan
Youzan API client.
Installs: 1 172
Dependents: 1
Suggesters: 0
Security: 0
Stars: 11
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- overtrue/http: ^1.0
- symfony/cache: ^4.1
This package is auto-updated.
Last update: 2020-02-09 11:14:10 UTC
README
Youzan API client.
🚧警告!此 SDK 目前仅支持自用型应用,不支持其它类型的应用接入。 由于有赞的不人道的 996 策略,以及在没有通知用户的情况下关闭了个人收款渠道,现决定不再维护他们家任何相关 SDK,谢谢!
Installing
$ composer require overtrue/youzan -vvv
Usage
use Overtrue\Youzan\Client; $clientId = '0a24a9a466xxxxxxx'; $clientSecret = 'eeb65cce4e1adf251306dxxxxxxxx'; $storeId = 40050388; $client = new Client($clientId, $clientSecret, $storeId); $response = $client->get('youzan.pay.qrcodes.get', ['page_size' => 1, 'page_no' => 1]); // or $response = $client->post('youzan.pay.xxxx.xxx', ['xxx' => 'xxx']);
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
PHP 扩展包开发
想知道如何从零开始构建 PHP 扩展包?
请关注我的实战课程,我会在此课程中分享一些扩展开发经验 —— 《PHP 扩展包实战教程 - 从入门到发布》
License
MIT