src/ServiceBus/ServiceBusRestProxy.php
public function getSubscription($topicPath, $subscriptionName)
    {
        $httpCallContext = new HttpCallContext();
        $httpCallContext->setMethod(Resources::HTTP_GET);
        $httpCallContext->addStatusCode(Resources::STATUS_OK);
        $subscriptionPath = sprintf(
            Resources::SUBSCRIPTION_PATH,
            $topicPath,
            $subscriptionName
        );
        $httpCallContext->setPath($subscriptionPath);
        $response = $this->sendHttpContext($httpCallContext);
        $subscriptionInfo = new SubscriptionInfo();
        $subscriptionInfo->parseXml($response->getBody());

        return $subscriptionInfo;
    }
public function getSubscription($topicPath, $subscriptionName)
    {
        $httpCallContext = new HttpCallContext();
        $httpCallContext->setMethod(Resources::HTTP_GET);
        $httpCallContext->addStatusCode(Resources::STATUS_OK);
        $subscriptionPath = sprintf(
            Resources::SUBSCRIPTION_PATH,
            $topicPath,
            $subscriptionName
        );
        $httpCallContext->setPath($subscriptionPath);
        $response = $this->sendHttpContext($httpCallContext);
        $subscriptionInfo = new SubscriptionInfo();
        $subscriptionInfo->parseXml($response->getBody());

        return $subscriptionInfo;
    }
public function getSubscription ( $ topicPath , $ subscriptionName ) { $ httpCallContext = new HttpCallContext ( ) ; $ httpCallContext -> setMethod ( Resources :: HTTP_GET ) ; $ httpCallContext -> addStatusCode ( Resources :: STATUS_OK ) ; $ subscriptionPath = sprintf ( Resources :: SUBSCRIPTION_PATH , $ topicPath , $ subscriptionName ) ; $ httpCallContext -> setPath ( $ subscriptionPath ) ; $ response = $ this -> sendHttpContext ( $ httpCallContext ) ; $ subscriptionInfo = new SubscriptionInfo ( ) ; $ subscriptionInfo -> parseXml ( $ response -> getBody ( ) ) ; return $ subscriptionInfo ; }
Gets a subscription.

@link http://msdn.microsoft.com/en-us/library/windowsazure/hh780741

@param string $topicPath        The path of the topic
@param string $subscriptionName The name of the subscription

@return SubscriptionInfo
Gets a subscription .