PHPackages                             webconsul/ebay-api-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. webconsul/ebay-api-bundle

AbandonedSymfony-bundle[API Development](/categories/api)

webconsul/ebay-api-bundle
=========================

Wrapper for eBay API. Bundle for Symfony2

0.2.4(11y ago)1050113[4 issues](https://github.com/WebConsul/EbayApiBundle/issues)MITPHPPHP &gt;=5.4

Since Jan 2Pushed 10y ago4 watchersCompare

[ Source](https://github.com/WebConsul/EbayApiBundle)[ Packagist](https://packagist.org/packages/webconsul/ebay-api-bundle)[ Docs](http://webconsul.github.io/EbayApiBundle)[ RSS](/packages/webconsul-ebay-api-bundle/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)Dependencies (4)Versions (11)Used By (0)

EbayApiBundle
=============

[](#ebayapibundle)

This project intends to create a simple wrapper around main eBay APIs:

- Shopping
- Finding
- Trading

**Caution:** Calls for Trading API are in progress... Coming soon.

[![SensioLabsInsight](https://camo.githubusercontent.com/9b3c2cc80e9f43a5017874e54f960fa3cdb4bebdffa579d8b3e0d4aa83ec0538/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f30313135306231332d323463362d343462632d386632372d6563363137333165356333352f6d696e692e706e67)](https://insight.sensiolabs.com/projects/01150b13-24c6-44bc-8f27-ec61731e5c35)[![Latest Stable Version](https://camo.githubusercontent.com/9f418e4c4e986f8e76af6b6870449fb56125a11385975c64d5e04760086080e9/68747470733a2f2f706f7365722e707567782e6f72672f776562636f6e73756c2f656261792d6170692d62756e646c652f762f737461626c652e737667)](https://packagist.org/packages/webconsul/ebay-api-bundle) [![Total Downloads](https://camo.githubusercontent.com/bbe9cc94ee14e1b630c77131ddfb19f81123748f88a4718a977d607289024779/68747470733a2f2f706f7365722e707567782e6f72672f776562636f6e73756c2f656261792d6170692d62756e646c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/webconsul/ebay-api-bundle) [![Latest Unstable Version](https://camo.githubusercontent.com/1a822d27c59b6eddc99946e7a4503d077954efb67a19a4fa705cc6e606d676d7/68747470733a2f2f706f7365722e707567782e6f72672f776562636f6e73756c2f656261792d6170692d62756e646c652f762f756e737461626c652e737667)](https://packagist.org/packages/webconsul/ebay-api-bundle) [![License](https://camo.githubusercontent.com/603a0f07f1c00cb6532975d9b1977a93e5b99e84f6d4fd771ccfbab3be5eb094/68747470733a2f2f706f7365722e707567782e6f72672f776562636f6e73756c2f656261792d6170692d62756e646c652f6c6963656e73652e737667)](https://packagist.org/packages/webconsul/ebay-api-bundle)API Reference (supporting calls)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#---api-reference-supporting-calls)

- Shopping API (version 897)

    - FindHalfProducts
    - FindPopularItems
    - FindPopularSearches
    - FindProducts
    - FindReviewsAndGuides
    - GetCategoryInfo
    - GeteBayTime
    - GetItemStatus
    - GetMultipleItems
    - GetShippingCosts
    - GetSingleItem
    - GetUserProfile
- Finding API (version 1.13.0)

    - findCompletedItems
    - findItemsAdvanced
    - findItemsByCategory
    - findItemsByImage **Caution:** temporary not Supporting!
    - findItemsByKeywords
    - findItemsByProduct
    - findItemsIneBayStores
    - getHistograms
    - getSearchKeywordsRecommendation
    - getVersion
- Trading API (version 903)

    - GetCategories
    - **Caution:** Other calls are in progress...

Simple example
--------------

[](#simple-example)

(in controller):

```
$api = 'Shopping';
$callName = 'GetSingleItem';
$ebay = $this->get('web_consul_ebay_api.main');
$call = $ebay->getInstance('Shopping', 'GetSingleItem', $ebay::MODE_PRODUCT);
$variationSpecifics = [];
$nameValueList = new NameValueList();
$nameValueList->setName('Colour')->setValue(['RED']);
$variationSpecifics[] = $nameValueList;
// set Call-specific and  Standard Input Fields
$call
     ->setItemID(151551119370)
     ->setIncludeSelector('Details, Variations')
     ->setVariationSpecifics($variationSpecifics);
// get response in XML format
$service = $this->get('web_consul_ebay_api.make_call');
$output = $service->getResponse($call);
```

Typically, the request properties are set by the standard setter. For more complex structures and containers created special types:

- WebConsul\\EbayApiBundle\\Type
    - Affiliate
    - AspectFilter
    - ItemFilter
    - NameValueList
    - PaginationInput
    - ProductID
    - RequesterCredentials

Full documentation will be stored in the `Resources/doc/index.md`

Installation
------------

[](#installation)

#### Step 1: Download EbayApiBundle using composer

[](#step-1-download-ebayapibundle-using-composer)

Add EbayApiBundle in your composer.json:

```
{
    "require": {
       "webconsul/ebay-api-bundle": "dev-master"
    }
}
```

#### Step 2: Update composer

[](#step-2-update-composer)

```
$ php composer.phar update webconsul/ebay-api-bundle
```

### Step 3: Enable the bundle

[](#step-3-enable-the-bundle)

```
