PHP code example of javareact / jiaofei100
1. Go to this page and download the library: Download javareact/jiaofei100 library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
javareact / jiaofei100 example snippets
use GuzzleHttp\Client;
use JavaReact\LFApi\Balance;
$goods = new Balance("apiKey", "secret", function() {
return new Client([
"base_uri" => \JavaReact\LFApi\Client::DEFAULT_GATEWAY,//可省略
]);
});
$response = $balance->balanceGet("productid");
if($response->getStatusCode() == 200) {
$json = $response->json();
$result = $response->result();
}