Genenerated jubelio API.
composer require iqomp/jubelio
You can use class Iqomp\Jubelio\Jubelio
to work with Jubelio API.
<?php
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);
Special case for method Authentication->Login
no need to add any argument.
Each collection->method
function accept arguments as below:
- URL parameter only if URL require some parameter.
- Request body for PUT/POST/DELETE method. And yes, Jublio accept body for
DELETE
method. And only if the request expect some body. - Request query string only if action expect some query string.