zacksleo / jingdong-sdk
京东宙斯 SDK
1.0.0
2019-09-17 01:22 UTC
Requires
- hanson/foundation-sdk: ^3.0
This package is auto-updated.
Last update: 2024-11-17 13:09:26 UTC
README
京东宙斯 SDK.
Installing
$ composer require zacksleo/jingdong-sdk -vvv
Usage
创建客户端
$jingdong = new Jingdong([ 'key' => 'key', 'secret' => 'secret', 'debug' => false, 'log' => [ 'name' => 'jingdong', 'file' => '/path/to/logs/jingdong.log'), 'level' => 'debug', 'permission' => 0777, ], ]);
调用
链式调用
$res = $jingdong->pop->order->get([ 'order_state' => 'WAIT_SELLER_DELIVERY', 'optional_fields' => 'venderId,orderType,payType', 'order_id' => '67834311', ]);
普通调用
$res = $jingdong->request('pop.order.get', [ 'order_state' => 'WAIT_SELLER_DELIVERY', 'optional_fields' => 'venderId,orderType,payType', 'order_id' => '67834311', ]);
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.
License
MIT