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

@throws ApiException
@return mixed The response object from the server
Read the response from the server completing the streaming call .