bandcamp-fetch • Docs
bandcamp-fetch / ImageAPI
new ImageAPI(
params
):ImageAPI
• params: BaseAPIParams
get
protected
cache():Cache
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
>
getFormat(
target
?,fallbackId
?):Promise
<null
|ImageFormat
>
• target?: string
| number
| ImageFormat
• fallbackId?: number
Promise
<null
| ImageFormat
>
getFormats(
filter
?):Promise
<ImageFormat
[]>
• filter?: ImageFormatFilter
Promise
<ImageFormat
[]>