dev-master
9999999-dev https://github.com/bodya-dnepr/ebayProvides a method to communicate with eBay's Finding, Shopping and Trading API. Version 0.1.6 only supports the Finding API.
The Requires
- php >5.2.0
by Rick Earley
api php ebay
Wallogit.com
2017 © Pedro Peláez
Provides a method to communicate with eBay's Finding, Shopping and Trading API. Version 0.1.6 only supports the Finding API.
The goal for this API is to make a reliable PHP class to communicate with the finding, shopping and trading API., (*1)
The library is still under development and at this time only the Finding API has been implemented. The documentation is a work in progress and will be updated as we move along in development., (*2)
The library uses the Call Reference found here:http://developer.ebay.com/Devzone/finding/CallRef/index.html, (*3)
For both the standard input fields as well as the call-specific field, the examples below will be the same., (*4)
Initialize Library, (*5)
$ebay = new \rearley\Ebay\Finding('your_ebay_key');, (*6)
Select call reference, will mirror the call reference name in eBay's documentation, (*7)
$ebay->call_type('findItemsIneBayStores');, (*8)
Here are a few examples of setting up each option. Any other option not listed in the example but listed in the documents will follow the same syntax., (*9)
Aspect Filters, (*10)
$ebay->add_aspectFilter('Brand', array('Apple','Bacon'));, (*11)
Domain Filter, (*12)
$ebay->add_domainFilter('Other_MP3_Players');, (*13)
Item Filters, (*14)
$ebay->add_itemFilter('MinPrice', '100','Currency','USD');, (*15)
$ebay->add_itemFilter('MaxPrice', '200','Currency','USD');, (*16)
$ebay->add_itemFilter('FreeShippingOnly', 'true');, (*17)
To complete the call, (*18)
$results = $ebay->search();, (*19)
$results will be FALSE on any errors caused through the code. Any errors that would generate a error response from eBay will not flag an error., (*20)
$ebay->results, (*21)
To get other errors not generated from ebay:, (*22)
$error = $ebay->error;, (*23)
Provides a method to communicate with eBay's Finding, Shopping and Trading API. Version 0.1.6 only supports the Finding API.
api php ebay