bandcamp-fetch • Docs
bandcamp-fetch / AlbumAPI
new AlbumAPI(
params
):AlbumAPI
• params: BaseAPIWithImageSupportParams
BaseAPIWithImageSupport
.constructor
lib/common/BaseAPIWithImageSupport.ts:12
get
protected
cache():Cache
get imageAPI():
ImageAPI
BaseAPIWithImageSupport
.imageAPI
lib/common/BaseAPIWithImageSupport.ts:17
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
>
getInfo(
params
):Promise
<Album
>
• params: AlbumAPIGetInfoParams
Promise
<Album
>