コード例 #1
0
 /**
  * List Registered Destinations
  * List all the destinations for the specified seller created by the developer.
  *
  * @param mixed $request array of parameters for MWSSubscriptions_Model_ListRegisteredDestinations request or MWSSubscriptions_Model_ListRegisteredDestinations object itself
  * @see MWSSubscriptions_Model_ListRegisteredDestinationsInput
  * @return MWSSubscriptions_Model_ListRegisteredDestinationsResponse
  *
  * @throws Subscriptions_Exception
  */
 public function listRegisteredDestinations($request)
 {
     if (!$request instanceof Model\MWSSubscriptions_Model_ListRegisteredDestinationsInput) {
         //require_once (dirname(__FILE__) . '/Model/ListRegisteredDestinationsInput.php');
         $request = new MWSSubscriptions_Model_ListRegisteredDestinationsInput($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'ListRegisteredDestinations';
     $httpResponse = $this->_invoke($parameters);
     //require_once (dirname(__FILE__) . '/Model/ListRegisteredDestinationsResponse.php');
     $response = Model\MWSSubscriptions_Model_ListRegisteredDestinationsResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }