bandcamp-fetch • Docs
bandcamp-fetch / LimiterDiscoveryAPI
new LimiterDiscoveryAPI(
params
):LimiterDiscoveryAPI
• params: BaseAPIWithImageSupportParams
& object
lib/discovery/DiscoveryAPI.ts:149
get
protected
cache():Cache
get imageAPI():
ImageAPI
lib/common/BaseAPIWithImageSupport.ts:17
discover(
params
):Promise
<DiscoverResult
>
• params: DiscoverParams
Promise
<DiscoverResult
>
lib/discovery/DiscoveryAPI.ts:162
protected
fetch(url
,jsonResponse
,method
,payload
?):Promise
<object
>
• url: string
• jsonResponse: false
• method: HEAD
• payload?: undefined
Promise
<object
>
ok:
boolean
status:
number
protected
fetch(url
,jsonResponse
,method
?,payload
?):Promise
<any
>
• url: string
• jsonResponse: true
• method?: FetchMethod
• payload?: Record
<string
, any
>
Promise
<any
>
protected
fetch(url
,jsonResponse
?,method
?,payload
?):Promise
<string
>
• url: string
• jsonResponse?: boolean
• method?: FetchMethod
• payload?: Record
<string
, any
>
Promise
<string
>
getAvailableOptions():
Promise
<DiscoverOptions
>
Promise
<DiscoverOptions
>
DiscoveryAPI
.getAvailableOptions
lib/discovery/DiscoveryAPI.ts:154
sanitizeDiscoverParams(
params
):Promise
<SanitizedDiscoverParams
>
• params: DiscoverParams
Promise
<SanitizedDiscoverParams
>