<?php

/**
 * example that fetches categories
 *
 * $Id$
 *
 * @package     Services_Ebay
 * @subpackage  Examples
 * @author      Stephan Schmidt
 */
error_reporting(E_ALL);
require_once '../vendor/autoload.php';
require_once 'config.php';
$session = \Services\Ebay::getSession($devId, $appId, $certId);
$session->setToken($token);
$ebay = new \Services\Ebay($session);
$items = $ebay->GetCategoryListings(57882);
echo '<pre>';
print_r($items);
echo '</pre>';
Exemplo n.º 2
0
 private function ebay()
 {
     $session = \Services\Ebay::getSession($this->devId, $this->appId, $this->certId);
     $session->setToken($this->token);
     $ebay = new \Services\Ebay($session);
     return $ebay;
 }