PHP code example of iqomp / jubelio

1. Go to this page and download the library: Download iqomp/jubelio 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/ */

    

iqomp / jubelio example snippets




use Iqomp\Jubelio\Jubelio;

$jubelio = new Jubelio('email@host', 'account-password');

// get login token
// special method, no need to provide body
$token = $jubelio->Authentication->Login();

// get all products
// https://docs.jubelio.com/#operation/getInventoryItems
// first args is the query string
$products = $jubelio->Product->GetAllProductGroups([
    'page' => 1,
    'pageSize' => 12,
    // ...
]);

// get single product variant
// https://api.jubelio.com/inventory/items/{id}
// first argument is URL parameter.
$variant = $jublio->Product->GetProduct(1);