service/LicenseService.php
public static function getList(Context $context, $filter = null)
    {
        $queryParams = (!is_null($filter)) ? [Constants::FILTER => $filter] : [];

        $response = NetLicensingService::getInstance()
            ->get($context, Constants::LICENSE_ENDPOINT_PATH, $queryParams);

        $licenses = [];
        $pageNumber = !empty($response->items->pagenumber) ? $response->items->pagenumber : 0;
        $itemsNumber = !empty($response->items->itemsnumber) ? $response->items->itemsnumber : 0;
        $totalPages = !empty($response->items->totalpages) ? $response->items->totalpages : 0;
        $totalItems = !empty($response->items->totalitems) ? $response->items->totalitems : 0;

        if (!empty($response->items->item)) {
            foreach ($response->items->item as $item) {
                $license = ItemToLicenseConverter::convert($item);
                $license->exists = true;

                $licenses[] = $license;
            }
        }

        return new Page($licenses, $pageNumber, $itemsNumber, $totalPages, $totalItems);
    }
public static function getList(Context $context, $filter = null)
    {
        $queryParams = (!is_null($filter)) ? [Constants::FILTER => $filter] : [];

        $response = NetLicensingService::getInstance()
            ->get($context, Constants::LICENSE_ENDPOINT_PATH, $queryParams);

        $licenses = [];
        $pageNumber = !empty($response->items->pagenumber) ? $response->items->pagenumber : 0;
        $itemsNumber = !empty($response->items->itemsnumber) ? $response->items->itemsnumber : 0;
        $totalPages = !empty($response->items->totalpages) ? $response->items->totalpages : 0;
        $totalItems = !empty($response->items->totalitems) ? $response->items->totalitems : 0;

        if (!empty($response->items->item)) {
            foreach ($response->items->item as $item) {
                $license = ItemToLicenseConverter::convert($item);
                $license->exists = true;

                $licenses[] = $license;
            }
        }

        return new Page($licenses, $pageNumber, $itemsNumber, $totalPages, $totalItems);
    }
Returns licenses of a vendor.See NetLicensingAPI for details:
https://www.labs64.de/confluence/display/NLICPUB/License+Services#LicenseServices-Licenseslist

determines the vendor on whose behalf the call is performed
@param Context $context

reserved for the future use, must be omitted / set to NULL
@param null $filter

return array of licenses (of all products) or empty array if nothing found.
@return Page
@throws \ErrorException
@throws RestException