public function addObject($content, $objectID = null)
{
if ($objectID === null) {
return $this->client->request($this->context, 'POST', '/1/indexes/' . $this->urlIndexName, array(), $content, $this->context->writeHostsArray, $this->context->connectTimeout, $this->context->readTimeout);
}
return $this->client->request($this->context, 'PUT', '/1/indexes/' . $this->urlIndexName . '/' . urlencode($objectID), array(), $content, $this->context->writeHostsArray, $this->context->connectTimeout, $this->context->readTimeout);
}