2017 © Pedro Peláez
 

symfony-bundle ebay-api-bundle

Wrapper for eBay API. Bundle for Symfony2

image

webconsul/ebay-api-bundle

Wrapper for eBay API. Bundle for Symfony2

  • Friday, November 20, 2015
  • by ekut
  • Repository
  • 4 Watchers
  • 9 Stars
  • 466 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 11 Forks
  • 5 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

EbayApiBundle

This project intends to create a simple wrapper around main eBay APIs:, (*1)

  • Shopping
  • Finding
  • Trading

Caution: Calls for Trading API are in progress... Coming soon., (*2)

SensioLabsInsightLatest Stable Version Total Downloads Latest Unstable Version License, (*3)

API Reference (supporting calls)

  • Shopping API (version 897), (*4)

    • FindHalfProducts
    • FindPopularItems
    • FindPopularSearches
    • FindProducts
    • FindReviewsAndGuides
    • GetCategoryInfo
    • GeteBayTime
    • GetItemStatus
    • GetMultipleItems
    • GetShippingCosts
    • GetSingleItem
    • GetUserProfile
  • Finding API (version 1.13.0), (*5)

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

    • GetCategories
    • Caution: Other calls are in progress...

Simple example

(in controller):, (*7)

$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:, (*8)

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

Full documentation will be stored in the Resources/doc/index.md, (*9)

Installation

Step 1: Download EbayApiBundle using composer

Add EbayApiBundle in your composer.json:, (*10)

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

Step 2: Update composer

``` bash $ php composer.phar update webconsul/ebay-api-bundle, (*11)

### Step 3: Enable the bundle

``` php
<?php
// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new WebConsul\EbayApiBundle\WebConsulEbayApiBundle(),
    );
}

Step 4: Enable JMS Serializer

This bundle needs JMS Serializer to work correctly. So, you need register it: ``` php <?php // app/AppKernel.php public function registerBundles() { // ... new JMS\SerializerBundle\JMSSerializerBundle(), // ... ); }, (*12)

### Step 4: Configure
For security reason all configuration parameters of the bundle must be added into `parameters.yml`:

parameters: ... web_consul_ebay_api: auth_token: 'YOUR TOKEN FOR TESTING API CALLS' application_keys: sandbox: dev_id: '...' app_id: '...' cert_id: '...' production: dev_id: '...' app_id: '...' cert_id: '...', (*13)

Values for that parameters you can get on your account page of [the eBay Developers program] (https://developer.ebay.com/DevZone/account/Default.aspx)

All the installation instructions are located in  the documentation.

Examples of the API calls
-----------------
If you want see samples for all supporting API call, you can configure `CallController` from the EbayApiBundle.
### Step 1: Routing
```js
// app/config/routing.yml
web_consul_ebay_api_homepage:
    resource: "@WebConsulEbayApiBundle/Controller/"
    type: annotation

Step 2: Browsing

Open in your browser: http://YOUR_HOST/callReference., (*14)

On that page you can see full list of the supporting API calls., (*15)

License

This bundle is under the MIT license. See the complete license in the bundle:, (*16)

Resources/meta/LICENSE

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker., (*17)

The Versions

20/11 2015

dev-master

9999999-dev http://webconsul.github.io/EbayApiBundle

Wrapper for eBay API. Bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Yakutskiy

api shopping trading ebay finding

05/02 2015

dev-release/0.3.0

dev-release/0.3.0 http://webconsul.github.io/EbayApiBundle

Wrapper for eBay API. Bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Yakutskiy

api shopping trading ebay finding

21/01 2015

dev-dev

dev-dev http://webconsul.github.io/EbayApiBundle

Wrapper for eBay API. Bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Yakutskiy

api shopping trading ebay finding

21/01 2015

0.2.4

0.2.4.0 http://webconsul.github.io/EbayApiBundle

Wrapper for eBay API. Bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Yakutskiy

api shopping trading ebay finding

21/01 2015

0.2.3

0.2.3.0 http://webconsul.github.io/EbayApiBundle

Wrapper for eBay API. Bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Yakutskiy

api shopping trading ebay finding

20/01 2015

0.2.2

0.2.2.0 http://webconsul.github.io/EbayApiBundle

Wrapper for eBay API. Bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Yakutskiy

api shopping trading ebay finding

20/01 2015

0.2.1

0.2.1.0 http://webconsul.github.io/EbayApiBundle

Wrapper for eBay API. Bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Yakutskiy

api shopping trading ebay finding

20/01 2015

0.2.0

0.2.0.0 http://webconsul.github.io/EbayApiBundle

Wrapper for eBay API. Bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Yakutskiy

api shopping trading ebay finding

20/01 2015

0.1.1

0.1.1.0 http://webconsul.github.io/EbayApiBundle

Wrapper for eBay API. Bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Yakutskiy

api shopping trading ebay finding

07/01 2015

0.1.0

0.1.0.0 http://webconsul.github.io/EbayApiBundle

Wrapper for eBay API. Bundle for Symfony2

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Alexander Yakutskiy

api shopping trading ebay finding

02/01 2014

v0.1-alpha

0.1.0.0-alpha http://webconsul.github.io/EbayApiBundle

Wrapper for eBay API. Bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Yakutskiy

api shopping trading ebay finding