service/UtilityService.php
public static function listLicenseTypes(Context $context)
    {
        $response = NetLicensingService::getInstance()
            ->get($context, Constants::UTILITY_ENDPOINT_PATH . '/' . Constants::UTILITY_ENDPOINT_PATH_LICENSE_TYPES);

        $licenseTypes = [];
        $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) {
                $licenseTypes[] = ItemToArrayConverter::convert($item);
            }
        }

        return new Page($licenseTypes, $pageNumber, $itemsNumber, $totalPages, $totalItems);
    }
public static function listLicenseTypes(Context $context)
    {
        $response = NetLicensingService::getInstance()
            ->get($context, Constants::UTILITY_ENDPOINT_PATH . '/' . Constants::UTILITY_ENDPOINT_PATH_LICENSE_TYPES);

        $licenseTypes = [];
        $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) {
                $licenseTypes[] = ItemToArrayConverter::convert($item);
            }
        }

        return new Page($licenseTypes, $pageNumber, $itemsNumber, $totalPages, $totalItems);
    }
Returns all license types. See NetLicensingAPI for details:
https://www.labs64.de/confluence/display/NLICPUB/Utility+Services#UtilityServices-LicenseTypeslist

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

array of available license types or empty array if nothing found.
@return Page
@throws \ErrorException
@throws RestException