quocvu88 / ebay-sdk
EBay SDK
0.0.1
2020-07-02 07:14 UTC
Requires
- php: >=5.5.0
This package is auto-updated.
Last update: 2024-09-29 05:48:51 UTC
README
这是一个PHP连接eBay API的SDK。
安装:运行以下命令
composer require quocvu88/ebay-sdk
快速示例
require_once __DIR__ . '/vendor/autoload.php';
$config = [
'appId' => 'Your-Application-ID',
'devId' => 'Your-Developer-ID',
'certId' => 'Your-Certificate-ID',
'serverUrl' => 'https://api.ebay.com/ws/api.dll',
'compatLevel' => 1149,
'siteID' => 0
];
$token = 'Your-Store-Token';
$client = new quocvu88\eBayAPI\Client\TraditionalSellingTradingClient($config, $token, 'array');
$response = $client->getItem(
[
'itemID' => 'item-id',
'IncludeItemSpecifics' => true
]
);
echo '<pre>';
print_r($item->getContent());
echo '</pre>';