javareact/jiaofei100

璐付PHP-SDK,Jiaolfei100 OpenApi SDK

1.1.3 2023-08-30 03:47 UTC

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();
}