21/07
2015
Heureka overeno service API
Heureka Overeno service API for PHP., (*1)
Initialize Service using your API key:, (*2)
require_once 'heureka-overeno-php-api/src/HeurekaOvereno.php'; $overeno = new HeurekaOvereno('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
SK shops should initialize Heureka Overeno service with second parameter HeurekaOvereno::LANGUAGE_SK:, (*3)
$overeno = new HeurekaOvereno('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', HeurekaOvereno::LANGUAGE_SK);
Set customer email:, (*4)
$overeno->setEmail('jan.novak@example.com');
Add product from order - encoded in UTF8 if possible. Service can handle WINDOWS-1250 and ISO-8859-2 if necessary, (*5)
$overeno->addProduct('Nokia N95');
Or add multiple products:, (*6)
// array $products is populated elsewhere by shop application foreach ($products as $product) { $overeno->addProduct($product); }
or/and add products using item ID:, (*7)
$overeno->addProductItemId('B1234');
Provide order ID - BIGINT (0 - 18446744073709551615):, (*8)
$overeno->addOrderId(123456);
Send the request:, (*9)
$overeno->send();
View all examples, (*10)