Example #1
0
 /**
  * Register a product with the eKomi service
  * 
  * @param \eKomi\Product $product
  * @return boolean
  */
 public function putProduct(Product $product)
 {
     $response = unserialize(file_get_contents(($this->forceHttps === true ? 'https' : 'http') . '://api.ekomi.de/v2/putProduct' . '?auth=' . $this->interfaceId . '|' . $this->interfacePassword . '&version=' . $this->version . '&product_id=' . rawurlencode($product->getProductId()) . '&product_name=' . rawurlencode($product->getProductName()) . '&product_other=' . rawurlencode(serialize($product->getProductOther()))));
     return $response['done'] == 1 ? true : false;
 }