public function getNode($key, array $flags = null)
{
$query = array();
if ($flags) {
$query = array('query' => $flags);
}
$request = $this->guzzleclient->get($this->buildKeyUri($key), null, $query);
$response = $request->send();
$body = $response->json();
if (isset($body['errorCode'])) {
throw new KeyNotFoundException($body['message'], $body['errorCode']);
}
return $body['node'];
}