Skip to content

Composer Library version of JD.ID HTTP Client version 2.0 build for PHP

Notifications You must be signed in to change notification settings

raviMukti/jos-api-client-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unofficial JD.ID Api Client for PHP

Composer library for JD.ID open API version 2. Please found something related with the Open API in this link

How to install

composer install haistar/jos-api-client

How to use

// Setup Client
$client = new JosApiClient($_ENV["SERVER_URL"], $_ENV["ACCESS_TOKEN"]);
$client->appKey = $_ENV["APP_KEY"];
$client->appSecret = $_ENV["APP_SECRET"];

// Setup Request
$request = new JosApiRequest("jingdong.epistock.queryEpiMerchantWareStock");
$request->addRequestParam("wareStockQueryListSt", "[{'skuId':601267085,'realNum':1}]");

// Execute API Request
$response = $client->execute($request);

About

Composer Library version of JD.ID HTTP Client version 2.0 build for PHP

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages