justmd5 / duoduoke-sdk
多多客API SDK【拼多多开放平台】.
Fund package maintenance!
Patreon
justmd5.com/donate.jpg
Installs: 8 520
Dependents: 0
Suggesters: 0
Security: 0
Stars: 55
Watchers: 3
Forks: 16
Open Issues: 1
Requires
- php: >=7.0
- ext-json: *
- hanson/foundation-sdk: ^3.0 || ^4.0
Requires (Dev)
- phpunit/phpunit: ^6.2 || ^7.0 || ^8.0
This package is auto-updated.
Last update: 2021-05-05 01:41:37 UTC
README
现推荐使用作者最新产出的拼多多API SDK【拼多多开放平台】
要求
- PHP >= 7.0
- Composer
- ext-curl 拓展
- ext-json 拓展
安装
composer require justmd5/duoduoke-sdk
使用
use Justmd5\DuoDuoKe\DuoDuoKe; require __DIR__ . '/vendor/autoload.php'; $config = [ 'key' => 'xxxxxx69e3940c6b93xxxxxx', 'secret' => 'c2eda0c398xxxxxxbd63ff57bf22c05xxxxxx', 'debug' => false ]; $duoduoke = new DuoDuoKe($config);
调用示例
多多进宝商品详情查询 pdd.ddk.goods.detail
$result = $duoduoke->request('pdd.ddk.goods.detail', ['goods_id_list' => ['395581006']]);
文档
感谢
单元测试[on working]
配置 config 中所需配置
composer test
License
MIT