pifeifei/jingdong-jos-api-sdk
最新稳定版本:v0.2.5
Composer 安装命令:
composer require pifeifei/jingdong-jos-api-sdk
包简介
jingdong aces php sdk
关键字:
README 文档
README
使用
<?php // 简单使用 use ACES\JdClient; //测试demo $config = [ 'appKey' => 'appKey', 'appSecret' => 'secret', 'redirectUrl' => 'https://localhost/?redirect url', // 'isvSource' => null, // 'shopNo' => null, // 'departmentNo' => null, // 'monthlyAccount' => null ]; $client = new JdClient($config); // 设置缓存 // $client->getAccessToken()->setCache(\Illuminate\Support\Facades\Cache::store()); // laravel // 获取 access token 字符串 dump($client->accessToken()); $req = new \ACES\Request\EclpFeeQueryFeeDetailWithPageRequest(); $req->setBillDay('2022-06-10'); $resp = $client->execute($req, $client->accessToken()); dd($resp); // 请求城市列表, 不用授权码 //$req = new \ACES\Request\AreaProvinceGetRequest(); //$req = new \ACES\Request\AreaCityGetRequest(); //$req->setParentId(1); // 北京 //$req = new \ACES\Request\AreaCountyGetRequest(); //$req->setParentId(72); // 北京 朝阳区 //$req = new \ACES\Request\AreaTownGetRequest(); //$req->setParentId(55690); // 北京 朝阳区 小红门地区 // false $req = new \ACES\Request\AreasProvinceGetRequest(); $resp = $client->execute($req, $client->accessToken()); dump($resp);
统计信息
- 总下载量: 5.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-only
- 更新时间: 2022-07-08