PHP code example of shopex / fuluopenapi
1. Go to this page and download the library: Download shopex/fuluopenapi library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
shopex / fuluopenapi example snippets
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();
}