shopex/fuluopenapi

fulu openapi sdk

v1.0.0 2019-11-26 18:54 UTC

This package is auto-updated.

Last update: 2024-10-27 05:46:52 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();
}