nathantudc / jdsdk
京东联盟sdk
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/nathantudc/jdsdk
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);