quocvu88/ebay-sdk

Ebay SDK

0.0.1 2020-07-02 07:14 UTC

This package is auto-updated.

Last update: 2024-09-29 05:48:51 UTC


README

This is SDK for PHP connect to eBay API.

To install: Run this command

composer require quocvu88/ebay-sdk

Quick Example:

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>';