javareact / fuluopenapi
福禄API,FuLu OpenApi SDK
1.0.4
2020-03-20 03:01 UTC
Requires
- php: >=7.1
- ext-json: *
- guzzlehttp/guzzle: *
- psr/log: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- mockery/mockery: ^1.3
- monolog/monolog: ^2.0
- phpunit/phpunit: <9.0.0
This package is auto-updated.
Last update: 2025-01-06 12:54:06 UTC
README
1. Require with Composer
composer require JavaReact/fuluopenapi
2. Example
use GuzzleHttp\Client;
use JavaReact\FuluOpenApi\Order;
$goods = new Goods("appKey", "secret", function() {
return new Client([
"base_uri" => "https://openapi.fulu.com/api/getway",
]);
});
$response = $goods->fuluGoodsInfoGet("productid");
if($response->getStatusCode() == 200) {
$json = $response->json();
$result = $response->result();
}