overtrue/youzan

This package is abandoned and no longer maintained. No replacement package was suggested.

Youzan API client.

1.0.0 2018-09-07 15:53 UTC

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:

  1. File bug reports using the issue tracker.
  2. Answer questions or fix bugs on the issue tracker.
  3. 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