PHP code example of pgrimaud / gibert-jeune
1. Go to this page and download the library: Download pgrimaud/gibert-jeune library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pgrimaud / gibert-jeune example snippets
$api = new \GibertJeune\Api();
$api->setBarcode('9782344009505');
$product = $api->getProduct();
Array
(
[prices] => Array
(
[0] => Array
(
[title] => Réservation
[prices] => Array
(
[0] => Array
(
[state] => Neuf
[price] => 0
)
[1] => Array
(
[state] => Occasion
[price] => 8.97
)
)
)
[1] => Array
(
[title] => Expédition
[prices] => Array
(
[0] => Array
(
[state] => Neuf
[price] => 14.95
)
[1] => Array
(
[state] => Occasion
[price] => 0
)
)
)
[2] => Array
(
[title] => E-Book
[prices] => Array
(
[0] => Array
(
[state] => Numérique
[price] => 0
)
)
)
)
[shops] => Array
(
[secondhand] => Array
(
[0] => 4 place Saint-Michel (1 en stock)
)
[new] => Array
(
[0] => 4 place Saint-Michel (2 en stock)
)
)
)