public function __construct(Zend_Http_Response $response) { $body = $response->getRawBody(); $json = Zend_Json::decode($body); $this->_id = $json['id']; if (null !== $json['error']) { $this->_error = $json['error']; } else { $this->_result = $json['result']; } }
public function processResponse(Zend_Http_Response $response) { $this->_lastMessageSize = strlen($response->getRawBody()); $this->_status = $response->getStatus(); }