Default Behaviour
By default, theScanner class connects to the SCANOSS OSS Knowledge Base API at
https://api.osskb.org without requiring any authentication.
Using an API Key
When an API key is provided without a custom URL, the SDK automatically switches to the SCANOSS Premium endpoint athttps://api.scanoss.com. Pass the key using the
.apiKey() builder method:
Using a Custom API Endpoint
To direct the SDK to a different API endpoint, pass the full endpoint URL using the.url() builder method:
Using an API Key with a Custom Endpoint
An API key and a custom endpoint URL can be used together. When aurl is explicitly
set, it always takes precedence over the SCANOSS Premium endpoint
(https://api.scanoss.com):