nathantudc / jdsdk
There is no license information available for the latest version (1.0.4) of this package.
京东联盟sdk
1.0.4
2022-09-13 14:38 UTC
Requires
- php: >=5.6
- monolog/monolog: 1.24.0
- netresearch/jsonmapper: 1.6.0
README
使用方式
use Nathantudc\JD\JdClient; //客户端,也就是请求的基本信息 如 key、secret等
use Nathantudc\JD\Request\xxxxx; //其中xxxxx 为需要请求的类,如:UnionOpenCategoryGoodsGetRequest(分类)
简单实例
//请求的一些基本参数
$client = new JdClient();
$client->appKey = "xxxxxxxxxxxxxxxxxxxxxx";
$client->appSecret = "xxxxxxxxxxxxxxxxxxxxxx";
//请求的一些参数
$req = new UnionOpenCategoryGoodsGetRequest();
$req->putOtherTextParam("parentId", 0);
$req->putOtherTextParam("grade",0);
$req->setReq($req);
$response = $client->execute($req);
print_r($response);