コード例 #1
0
ファイル: Client.php プロジェクト: psyforce/amazon-mws-php
 /**
  * Get Service Status
  * 
  *
  * @param mixed $request array of parameters for MWSCartService_Model_GetServiceStatus request or MWSCartService_Model_GetServiceStatus object itself
  * @see MWSCartService_Model_GetServiceStatusRequest
  * @return MWSCartService_Model_GetServiceStatusResponse
  *
  * @throws MWSCartService_Exception
  */
 public function getServiceStatus($request)
 {
     if (!$request instanceof MWSCartService_Model_GetServiceStatusRequest) {
         require_once dirname(__FILE__) . '/Model/GetServiceStatusRequest.php';
         $request = new MWSCartService_Model_GetServiceStatusRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'GetServiceStatus';
     $httpResponse = $this->_invoke($parameters);
     require_once dirname(__FILE__) . '/Model/GetServiceStatusResponse.php';
     $response = MWSCartService_Model_GetServiceStatusResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }
コード例 #2
0
ファイル: Mock.php プロジェクト: psyforce/amazon-mws-php
 /**
  * Get Service Status
  * 
  *
  * @param mixed $request array of parameters for MWSCartService_Model_GetServiceStatus request or MWSCartService_Model_GetServiceStatus object itself
  * @see MWSCartService_Model_GetServiceStatus
  * @return MWSCartService_Model_GetServiceStatusResponse
  *
  * @throws MWSCartService_Exception
  */
 public function getServiceStatus($request)
 {
     require_once dirname(__FILE__) . '/Model/GetServiceStatusResponse.php';
     return MWSCartService_Model_GetServiceStatusResponse::fromXML($this->_invoke('GetServiceStatus'));
 }