public function getObject($objectID, $attributesToRetrieve = null)
{
$id = urlencode($objectID);
if ($attributesToRetrieve === null) {
return $this->client->request($this->context, 'GET', '/1/indexes/' . $this->urlIndexName . '/' . $id, null, null, $this->context->readHostsArray, $this->context->connectTimeout, $this->context->readTimeout);
}
return $this->client->request($this->context, 'GET', '/1/indexes/' . $this->urlIndexName . '/' . $id, array('attributes' => $attributesToRetrieve), null, $this->context->readHostsArray, $this->context->connectTimeout, $this->context->readTimeout);
}