PHP code example of haoteam / hippo-buyer-php-sdk
1. Go to this page and download the library: Download haoteam/hippo-buyer-php-sdk 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/ */
haoteam / hippo-buyer-php-sdk example snippets
HaoTeam\HippoBuyer\Client;
$appKey = null;
$appSecret = null;
try {
$Client = new Client($appKey, $appSecret);
// $response = $Client->request('App.Goods.List', ['page' => 1, 'limit' => 20]);
$response = $Client->request('App.Goods.Detail', ['id' => 2361]);
} catch (\Exception $e) {
var_dump($e->getMessage());
var_dump("\r\n");
var_dump($e->getCode());
}
var_dump($response ?? null);
bash
$ composer