/** * Get Subscription Details * Returns a list of active subscriptions based on the list of subscription identifiers. * Subscription identifier can be fetched from ListSubscriptionsCount and ListActiveSubscriptionByNextToken APIs. * * @param mixed $request array of parameters for MarketplaceWebServiceWebstore_Model_GetSubscriptionDetails request or MarketplaceWebServiceWebstore_Model_GetSubscriptionDetails object itself * @see MarketplaceWebServiceWebstore_Model_GetSubscriptionDetailsRequest * @return MarketplaceWebServiceWebstore_Model_GetSubscriptionDetailsResponse * * @throws MarketplaceWebServiceWebstore_Exception */ public function getSubscriptionDetails($request) { if (!$request instanceof MarketplaceWebServiceWebstore_Model_GetSubscriptionDetailsRequest) { require_once dirname(__FILE__) . '/Model/GetSubscriptionDetailsRequest.php'; $request = new MarketplaceWebServiceWebstore_Model_GetSubscriptionDetailsRequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'GetSubscriptionDetails'; $httpResponse = $this->_invoke($parameters); require_once dirname(__FILE__) . '/Model/GetSubscriptionDetailsResponse.php'; $response = MarketplaceWebServiceWebstore_Model_GetSubscriptionDetailsResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }
/** * Get Subscription Details * Returns a list of active subscriptions based on the list of subscription identifiers. * Subscription identifier can be fetched from ListSubscriptionsCount and ListActiveSubscriptionByNextToken APIs. * * @param mixed $request array of parameters for MarketplaceWebServiceWebstore_Model_GetSubscriptionDetails request or MarketplaceWebServiceWebstore_Model_GetSubscriptionDetails object itself * @see MarketplaceWebServiceWebstore_Model_GetSubscriptionDetails * @return MarketplaceWebServiceWebstore_Model_GetSubscriptionDetailsResponse * * @throws Webstore_Exception */ public function getSubscriptionDetails($request) { //require_once (dirname(__FILE__) . '/Model/GetSubscriptionDetailsResponse.php'); return MarketplaceWebServiceWebstore_Model_GetSubscriptionDetailsResponse::fromXML($this->_invoke('GetSubscriptionDetails')); }