public function forSubscription($subscriptionId)
    {
        $service = $this->getService();

        // events for a subscription
        $response = $service->request('subscriptions/' . $subscriptionId . '/events', 'GET', NULL, $this->getParams());

        $responseArray = $this->getResponseArray($response);

        if (!$this->isError()) {
            $this->_data = $this->_normalizeResponseArray($responseArray);
        } else {
            $this->_data = array();
        }

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

        // events for a subscription
        $response = $service->request('subscriptions/' . $subscriptionId . '/events', 'GET', NULL, $this->getParams());

        $responseArray = $this->getResponseArray($response);

        if (!$this->isError()) {
            $this->_data = $this->_normalizeResponseArray($responseArray);
        } else {
            $this->_data = array();
        }

        return $this;
    }
public function forSubscription ( $ subscriptionId ) { $ service = $ this -> getService ( ) ; // events for a subscription $ response = $ service -> request ( 'subscriptions/' . $ subscriptionId . '/events' , 'GET' , NULL , $ this -> getParams ( ) ) ; $ responseArray = $ this -> getResponseArray ( $ response ) ; if ( ! $ this -> isError ( ) ) { $ this -> _data = $ this -> _normalizeResponseArray ( $ responseArray ) ; } else { $ this -> _data = array ( ) ; } return $ this ; }
Return events for the given subscription

@param int $subscriptionId

@return Event
@see Event::setPagination()
@see Event::setSinceId()
@see Event::setMaxId()
@see Event::setDirection()
Return events for the given subscription