Skip to content

javareact/chengquan-openapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

橙券-权益营销方案服务商

ChengQuan-openapi

PHP-SDK

1. Require with Composer

composer require javareact/cq-api

2. Example

use GuzzleHttp\Client;
use JavaReact\CQApi\CQBalance;

$goods = new CQBalance("appKey", "secret", function() {
    return new Client([
        "base_uri" => \JavaReact\CQApi\Client::DEFAULT_GATEWAY,//可省略
    ]);
});

$response = $balance->balanceGet("productid");
if($response->getStatusCode() == 200) {
    $json = $response->json();
    $result = $response->result();
}

About

橙券 OpenAPI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages