/**
  * Get My Price For ASIN
  * <!-- Wrong doc in current code -->
  *
  * @param mixed $request array of parameters for MarketplaceWebServiceProducts_Model_GetMyPriceForASIN request or MarketplaceWebServiceProducts_Model_GetMyPriceForASIN object itself
  * @see MarketplaceWebServiceProducts_Model_GetMyPriceForASIN
  * @return MarketplaceWebServiceProducts_Model_GetMyPriceForASINResponse
  *
  * @throws Products_Exception
  */
 public function getMyPriceForASIN($request)
 {
     //require_once (dirname(__FILE__) . '/Model/GetMyPriceForASINResponse.php');
     return MarketplaceWebServiceProducts_Model_GetMyPriceForASINResponse::fromXML($this->_invoke('GetMyPriceForASIN'));
 }
示例#2
0
文件: Mock.php 项目: stephlanj/mws
 /**
  * Get My Price For ASIN
  * <!-- Wrong doc in current code -->
  *
  * @param mixed $request array of parameters for MarketplaceWebServiceProducts_Model_GetMyPriceForASIN request or MarketplaceWebServiceProducts_Model_GetMyPriceForASIN object itself
  * @see MarketplaceWebServiceProducts_Model_GetMyPriceForASIN
  * @return MarketplaceWebServiceProducts_Model_GetMyPriceForASINResponse
  *
  * @throws MarketplaceWebServiceProducts_Exception
  */
 public function getMyPriceForASIN($request)
 {
     return MarketplaceWebServiceProducts_Model_GetMyPriceForASINResponse::fromXML($this->_invoke('GetMyPriceForASIN'));
 }
示例#3
0
 /**
  * Get My Price For ASIN
  * <!-- Wrong doc in current code -->
  *
  * @param mixed $request array of parameters for MarketplaceWebServiceProducts_Model_GetMyPriceForASIN request or MarketplaceWebServiceProducts_Model_GetMyPriceForASIN object itself
  * @see MarketplaceWebServiceProducts_Model_GetMyPriceForASINRequest
  * @return MarketplaceWebServiceProducts_Model_GetMyPriceForASINResponse
  *
  * @throws MarketplaceWebServiceProducts_Exception
  */
 public function getMyPriceForASIN($request)
 {
     if (!$request instanceof MarketplaceWebServiceProducts_Model_GetMyPriceForASINRequest) {
         require_once dirname(__FILE__) . '/Model/GetMyPriceForASINRequest.php';
         $request = new MarketplaceWebServiceProducts_Model_GetMyPriceForASINRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'GetMyPriceForASIN';
     $httpResponse = $this->_invoke($parameters);
     require_once dirname(__FILE__) . '/Model/GetMyPriceForASINResponse.php';
     $response = MarketplaceWebServiceProducts_Model_GetMyPriceForASINResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }
示例#4
0
 /**
  * Get My Price For ASIN 
  * Get my price
  * 
  * @see http://docs.amazonwebservices.com/${docPath}GetMyPriceForASIN.html
  * @param mixed $request array of parameters for MarketplaceWebServiceProducts_Model_GetMyPriceForASINRequest request
  * or MarketplaceWebServiceProducts_Model_GetMyPriceForASINRequest object itself
  * @see MarketplaceWebServiceProducts_Model_GetMyPriceForASIN
  * @return MarketplaceWebServiceProducts_Model_GetMyPriceForASINResponse MarketplaceWebServiceProducts_Model_GetMyPriceForASINResponse
  *
  * @throws MarketplaceWebServiceProducts_Exception
  */
 public function getMyPriceForASIN($request)
 {
     if (!$request instanceof MarketplaceWebServiceProducts_Model_GetMyPriceForASINRequest) {
         require_once 'MarketplaceWebServiceProducts/Model/GetMyPriceForASINRequest.php';
         $request = new MarketplaceWebServiceProducts_Model_GetMyPriceForASINRequest($request);
     }
     require_once 'MarketplaceWebServiceProducts/Model/GetMyPriceForASINResponse.php';
     $httpResponse = $this->_invoke($this->_convertGetMyPriceForASIN($request));
     $response = MarketplaceWebServiceProducts_Model_GetMyPriceForASINResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }