To see example of initialization, please look at Implementation part of our README
Method returns LabelIterator containing Label entity.
use MpApiClient\Common\Interfaces\LabelClientInterface;
/** @var LabelClientInterface $labelClient */
$labels = $labelClient->list();
echo json_encode($labels, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
Example above prints out
[
{
"id": "TIP2",
"title": "Náš tip"
},
{
"id": "SALE",
"title": "Výprodej"
},
{
"id": "FDEL",
"title": "Doprava zdarma"
},
...
]