public function readResponse()
    {
        list($response, $status) = $this->call->wait();
        if ($status->code == Code::OK) {
            return $response;
        } else {
            throw ApiException::createFromStdClass($status);
        }
    }