service/LicenseService.php
public static function get(Context $context, $number)
    {
        CheckUtils::paramNotEmpty($number, Constants::NUMBER);

        $response = NetLicensingService::getInstance()
            ->get($context, Constants::LICENSE_ENDPOINT_PATH . '/' . $number);

        $license = null;

        if (!empty($response->items->item[0])) {
            $license = ItemToLicenseConverter::convert($response->items->item[0]);
            $license->exists = true;
        }

        return $license;
    }
public static function get(Context $context, $number)
    {
        CheckUtils::paramNotEmpty($number, Constants::NUMBER);

        $response = NetLicensingService::getInstance()
            ->get($context, Constants::LICENSE_ENDPOINT_PATH . '/' . $number);

        $license = null;

        if (!empty($response->items->item[0])) {
            $license = ItemToLicenseConverter::convert($response->items->item[0]);
            $license->exists = true;
        }

        return $license;
    }
Gets license by its number.See NetLicensingAPI for details:
https://www.labs64.de/confluence/display/NLICPUB/License+Services#LicenseServices-Getlicense

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

the license number
@param $number

@return License|null
@throws MalformedArgumentsException
@throws RestException
@throws \ErrorException