shopex / fuluopenapi
fulu openapi sdk
v1.0.0
2019-11-26 18:54 UTC
Requires
- php: >=7.2
- ext-json: *
- guzzlehttp/guzzle: ^6.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- mockery/mockery: ^1.3
- monolog/monolog: ^2.0
- phpunit/phpunit: ^8.4
This package is auto-updated.
Last update: 2024-11-27 05:56:01 UTC
README
1. Require with Composer
composer require shopex/fuluopenapi
2. Example
use GuzzleHttp\Client;
use Shopex\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();
}