PHP code example of ddxq / ebai-openapi-php-sdk
1. Go to this page and download the library: Download ddxq/ebai-openapi-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/ */
ddxq / ebai-openapi-php-sdk example snippets
php
composer
php
use eBaiOpenApi\Config\Config;
use eBaiOpenApi\Api\ShopService;
//实例化一个配置类
$config = new Config($app_key, $app_secret, false);
//使用config和token对象,实例化一个服务对象
$shop_service = new ShopService($config);
//调用服务方法,获取资源
$shop = shop_service->get_shop_list();