Service/Ebay/Finding.php

Show: PublicProtectedPrivateinherited
Table of Contents
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
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

>VConstant  SERVICE_NAME = 'FindingService'
>VConstant  SERVICE_VERSION = '1.0.0'
>VConstant  RESPONSE_DATA_FORMAT = 'XML'
>VConstant  ENDPOINT_URI = 'http://svcs.ebay.com'
>VConstant  ENDPOINT_PATH = 'services/search/FindingService/v1'
>VConstant  XMLNS_FINDING = 'e'
>VConstant  XMLNS_MS = 'ms'

Properties

>VPropertyprotectedarray $_options = array(self::OPTION_GLOBAL_ID => 'EBAY-US')
Default valuearray(self::OPTION_GLOBAL_ID => 'EBAY-US')Details
Type
array
>VPropertyprotectedarray $_xmlNamespaces = array(self::XMLNS_FINDING => 'http://www.ebay.com/marketplace/search/v1/services', self::XMLNS_MS => 'http://www.ebay.com/marketplace/services')
static
Default valuearray(self::XMLNS_FINDING => 'http://www.ebay.com/marketplace/search/v1/services', self::XMLNS_MS => 'http://www.ebay.com/marketplace/services')Details
Type
array

Methods

methodpublic__construct(\Zend_Config | array | string $options) : void

Parameters
NameTypeDescription
$options\Zend_Config | array | string

Application Id or array of options

Throws
ExceptionDescription
\Zend_Service_Ebay_Finding_ExceptionWhen application id is missing
methodprotected_findItems(array $options, string $operation) : \Zend_Service_Ebay_Finding_Response_Items

Parameters
NameTypeDescription
$optionsarray
$operationstring
Returns
TypeDescription
\Zend_Service_Ebay_Finding_Response_Items
methodprotected_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.
Parameters
NameTypeDescription
$response\Zend_Http_Response
Returns
TypeDescription
\DOMDocument
Throws
ExceptionDescription
\Zend_Service_Ebay_Finding_ExceptionWhen any error occurrs during request
Details
Link
http://developer.ebay.com/DevZone/finding/CallRef/types/ErrorSeverity.html  
See
 
methodprotected_request(string $operation, array $options = null) : \DOMDocument

Parameters
NameTypeDescription
$operationstring
$optionsarray
Returns
TypeDescription
\DOMDocument
Details
Link
http://developer.ebay.com/DevZone/finding/Concepts/MakingACall.html#StandardURLParameters  
methodpublicfindItemsAdvanced(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
NameTypeDescription
$keywordsstring
$descriptionSearchboolean
$categoryIdinteger
$options\Zend_Config | array
Returns
TypeDescription
\Zend_Service_Ebay_Finding_Response_Items
Details
Link
http://developer.ebay.com/DevZone/finding/CallRef/findItemsAdvanced.html  
methodpublicfindItemsByCategory(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
NameTypeDescription
$categoryIdinteger
$options\Zend_Config | array
Returns
TypeDescription
\Zend_Service_Ebay_Finding_Response_Items
Details
Link
http://developer.ebay.com/DevZone/finding/CallRef/findItemsByCategory.html  
methodpublicfindItemsByKeywords(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
NameTypeDescription
$keywordsstring
$options\Zend_Config | array
Returns
TypeDescription
\Zend_Service_Ebay_Finding_Response_Items
Details
Link
http://developer.ebay.com/DevZone/finding/CallRef/findItemsByKeywords.html  
methodpublicfindItemsByProduct(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
NameTypeDescription
$productIdinteger
$productIdTypestring

Default value is ReferenceID

$options\Zend_Config | array
Returns
TypeDescription
\Zend_Service_Ebay_Finding_Response_Items
Details
Link
http://developer.ebay.com/DevZone/finding/CallRef/findItemsByProduct.html  
methodpublicfindItemsInEbayStores(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
NameTypeDescription
$storeNamestring
$options\Zend_Config | array
Returns
TypeDescription
\Zend_Service_Ebay_Finding_Response_Items
Details
Link
http://developer.ebay.com/DevZone/finding/CallRef/findItemsIneBayStores.html  
methodpublicgetClient() : \Zend_Rest_Client

Returns
TypeDescription
\Zend_Rest_Client
methodpublicgetHistograms(integer $categoryId, \Zend_Config | array $options = null) : \Zend_Service_Ebay_Finding_Response_Histograms

Gets category and/or aspect metadata for the specified category.

Parameters
NameTypeDescription
$categoryIdinteger
$options\Zend_Config | array
Returns
TypeDescription
\Zend_Service_Ebay_Finding_Response_Histograms
Details
Link
http://developer.ebay.com/DevZone/finding/CallRef/getHistograms.html  
methodpublicgetSearchKeywordsRecommendation(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
NameTypeDescription
$keywordsstring
$options\Zend_Config | array
Returns
TypeDescription
\Zend_Service_Ebay_Finding_Response_Keywords
Details
Link
http://developer.ebay.com/DevZone/finding/CallRef/getSearchKeywordsRecommendation.html  
methodpublicgetXmlNamespaces() : array
static

Returns
TypeDescription
array
methodpublicsetClient(\Zend_Rest_Client $client) : \Zend_Service_Ebay_Finding

Parameters
NameTypeDescription
$client\Zend_Rest_Client
Returns
TypeDescription
\Zend_Service_Ebay_FindingProvides a fluent interface
Documentation was generated by phpDocumentor 2.2.0 .