Service/Ebay/Finding.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service
- Subpackage
- Ebay
- Version
- $Id: Finding.php 22824 2010-08-09 18:59:54Z renanbr $
\Zend_Service_Ebay_Finding
Package: Zend_Service\Ebay
Returns
Throws
Details
- Parent(s)
- \Zend_Service_Ebay_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Uses
Constants
Properties
array $_options = array(self::OPTION_GLOBAL_ID => 'EBAY-US')
Default value
array(self::OPTION_GLOBAL_ID => 'EBAY-US')
Details- Type
- array
array $_xmlNamespaces = array(self::XMLNS_FINDING => 'http://www.ebay.com/marketplace/search/v1/services', self::XMLNS_MS => 'http://www.ebay.com/marketplace/services')
static
Default value
array(self::XMLNS_FINDING => 'http://www.ebay.com/marketplace/search/v1/services', self::XMLNS_MS => 'http://www.ebay.com/marketplace/services')
Details- Type
- array
Methods
__construct(\Zend_Config | array | string $options) : void
Parameters
Throws
Name | Type | Description |
---|---|---|
$options | \Zend_Config | array | string | Application Id or array of options |
Exception | Description |
---|---|
\Zend_Service_Ebay_Finding_Exception | When application id is missing |
_findItems(array $options, string $operation) : \Zend_Service_Ebay_Finding_Response_Items
Parameters
Returns
Name | Type | Description |
---|---|---|
$options | array | |
$operation | string |
Type | Description |
---|---|
\Zend_Service_Ebay_Finding_Response_Items |
_parseResponse(\Zend_Http_Response $response) : \DOMDocument
Search for error from request.
If any error is found a DOMDocument is returned, this object contains a
DOMXPath object as "ebayFindingXPath" attribute.
ParametersName | Type | Description |
---|---|---|
$response | \Zend_Http_Response |
Type | Description |
---|---|
\DOMDocument |
Exception | Description |
---|---|
\Zend_Service_Ebay_Finding_Exception | When any error occurrs during request |
_request(string $operation, array $options = null) : \DOMDocument
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$operation | string | |
$options | array |
Type | Description |
---|---|
\DOMDocument |
findItemsAdvanced(string $keywords, boolean $descriptionSearch = true, integer $categoryId = null, \Zend_Config | array $options = null) : \Zend_Service_Ebay_Finding_Response_Items
Finds items by a keyword query and/or category and allows searching within item descriptions.
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$keywords | string | |
$descriptionSearch | boolean | |
$categoryId | integer | |
$options | \Zend_Config | array |
Type | Description |
---|---|
\Zend_Service_Ebay_Finding_Response_Items |
findItemsByCategory(integer $categoryId, \Zend_Config | array $options = null) : \Zend_Service_Ebay_Finding_Response_Items
Finds items in a specific category. Results can be filtered and sorted.
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$categoryId | integer | |
$options | \Zend_Config | array |
Type | Description |
---|---|
\Zend_Service_Ebay_Finding_Response_Items |
findItemsByKeywords(string $keywords, \Zend_Config | array $options = null) : \Zend_Service_Ebay_Finding_Response_Items
Finds items on eBay based upon a keyword query and returns details for matching items.
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$keywords | string | |
$options | \Zend_Config | array |
Type | Description |
---|---|
\Zend_Service_Ebay_Finding_Response_Items |
findItemsByProduct(integer $productId, string $productIdType = null, \Zend_Config | array $options = null) : \Zend_Service_Ebay_Finding_Response_Items
Finds items based upon a product ID, such as an ISBN, UPC, EAN, or ePID.
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$productId | integer | |
$productIdType | string | Default value is ReferenceID |
$options | \Zend_Config | array |
Type | Description |
---|---|
\Zend_Service_Ebay_Finding_Response_Items |
findItemsInEbayStores(string $storeName, \Zend_Config | array $options = null) : \Zend_Service_Ebay_Finding_Response_Items
Finds items in eBay stores. Can search a specific store or can search all stores with a keyword query.
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$storeName | string | |
$options | \Zend_Config | array |
Type | Description |
---|---|
\Zend_Service_Ebay_Finding_Response_Items |
getHistograms(integer $categoryId, \Zend_Config | array $options = null) : \Zend_Service_Ebay_Finding_Response_Histograms
Gets category and/or aspect metadata for the specified category.
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$categoryId | integer | |
$options | \Zend_Config | array |
Type | Description |
---|---|
\Zend_Service_Ebay_Finding_Response_Histograms |
getSearchKeywordsRecommendation(string $keywords, \Zend_Config | array $options = null) : \Zend_Service_Ebay_Finding_Response_Keywords
Checks specified keywords and returns correctly spelled keywords for best search results.
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$keywords | string | |
$options | \Zend_Config | array |
Type | Description |
---|---|
\Zend_Service_Ebay_Finding_Response_Keywords |
setClient(\Zend_Rest_Client $client) : \Zend_Service_Ebay_Finding
Parameters
Returns
Name | Type | Description |
---|---|---|
$client | \Zend_Rest_Client |
Type | Description |
---|---|
\Zend_Service_Ebay_Finding | Provides a fluent interface |