Ejemplo n.º 1
0
 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'];
     }
 }
Ejemplo n.º 2
0
 public function processResponse(Zend_Http_Response $response)
 {
     $this->_lastMessageSize = strlen($response->getRawBody());
     $this->_status = $response->getStatus();
 }