Skip to content

Commit

Permalink
Merge pull request #3 from martinbartama/master
Browse files Browse the repository at this point in the history
Může být matoucí - remove API key from example
  • Loading branch information
heureka-user committed Jun 26, 2014
2 parents d46092b + 64b9ea9 commit aeb92b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Initialize Service using [your API key](http://sluzby.heureka.cz/sluzby/certifik

```php
require_once 'heureka-overeno-php-api/src/HeurekaOvereno.php';
$overeno = new HeurekaOvereno('9b011a7086cfc0210cccfbdb7e51aac8');
$overeno = new HeurekaOvereno('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
```
SK shops should initialize Heureka Overeno service with second parameter HeurekaOvereno::LANGUAGE_SK:

$overeno = new HeurekaOvereno('9b011a7086cfc0210cccfbdb7e51aac8', HeurekaOvereno::LANGUAGE_SK);
$overeno = new HeurekaOvereno('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', HeurekaOvereno::LANGUAGE_SK);

Set customer email:

Expand Down
4 changes: 2 additions & 2 deletions examples/basic.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require_once 'HeurekaOvereno.php';

try {
$overeno = new HeurekaOvereno('9b011a7086cfc0210cccfbdb7e51aac8' /* USE your own API key */);
$overeno = new HeurekaOvereno('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' /* USE your own API key */);
// SK shops should use $overeno = new HeurekaOvereno('9b011a7086cfc0210cccfbdb7e51aac8', HeurekaOvereno::LANGUAGE_SK);

// set customer email - MANDATORY
Expand All @@ -28,4 +28,4 @@
} catch (HeurekaOverenoException $e) {
// handle errors
print $e->getMessage();
}
}

0 comments on commit aeb92b2

Please sign in to comment.