Migrate API calls to V3 and add automatic entitlement ID logic
Closed this issue · 2 comments
ryancblack commented
All calls should move to V3. Endpoints are generally very similar, excluding the need to specify entitlement ID on starting a scan.
This change allows manual specification of the desired entitlement to spend for a scan, but requires logic to automatically select one when needed.
This is done on the legacy endpoints by:
- First valid subscription
- Any valid single scan if no subscription
- Any single scan, even if there is no count available (may not succeed based on the option to "allow scanning without entitlement" for the account