haistar / jos-api-client
Unofficial API Client for JDID Open Platform V2
Installs: 106
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/haistar/jos-api-client
Requires
- vlucas/phpdotenv: ^5.4
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2025-09-29 02:41:57 UTC
README
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);