javareact / jiaofei100
璐付PHP-SDK,Jiaolfei100 OpenApi SDK
1.1.3
2023-08-30 03:47 UTC
Requires
- php: >=7.1
- ext-iconv: *
- ext-json: *
- ext-openssl: *
- guzzlehttp/guzzle: *
- psr/log: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- mockery/mockery: ^1.3
- monolog/monolog: *
- phpunit/phpunit: <9.0.0
This package is auto-updated.
Last update: 2024-12-30 02:13:26 UTC
README
Jiaolfei100-openapi
PHP-SDK
1. Require with Composer
composer require javareact/jiaofei100
2. Example
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();
}