public function readSubscription($subscriptionId, $componentId)
    {
        $service = $this->getService();

        $response      = $service->request('subscriptions/' . (int)$subscriptionId . '/components/' . (int)$componentId, 'GET');
        $responseArray = $this->getResponseArray($response);

        if (!$this->isError()) {
            $this->_data = $responseArray['component'];
        } else {
            $this->_data = array();
        }

        return $this;
    }
public function readSubscription($subscriptionId, $componentId)
    {
        $service = $this->getService();

        $response      = $service->request('subscriptions/' . (int)$subscriptionId . '/components/' . (int)$componentId, 'GET');
        $responseArray = $this->getResponseArray($response);

        if (!$this->isError()) {
            $this->_data = $responseArray['component'];
        } else {
            $this->_data = array();
        }

        return $this;
    }
public function readSubscription ( $ subscriptionId , $ componentId ) { $ service = $ this -> getService ( ) ; $ response = $ service -> request ( 'subscriptions/' . ( int ) $ subscriptionId . '/components/' . ( int ) $ componentId , 'GET' ) ; $ responseArray = $ this -> getResponseArray ( $ response ) ; if ( ! $ this -> isError ( ) ) { $ this -> _data = $ responseArray [ 'component' ] ; } else { $ this -> _data = array ( ) ; } return $ this ; }
Read component for a subscription

@param int $subscriptionId
@param int $componentId

@return Component
Read component for a subscription