4.9 KiB
4.9 KiB
bandcamp-fetch / LimiterBandAPI
Class: LimiterBandAPI
Hierarchy
-
↳
LimiterBandAPI
Table of contents
Constructors
Accessors
Methods
Constructors
constructor
• new LimiterBandAPI(params
)
Parameters
Name | Type |
---|---|
params |
BaseAPIWithImageSupportParams & { limiter : Limiter } |
Overrides
Defined in
Accessors
cache
• Protected
get
cache(): Cache
Returns
Inherited from
BandAPI.cache
Defined in
imageAPI
• get
imageAPI(): ImageAPI
Returns
Inherited from
BandAPI.imageAPI
Defined in
lib/common/BaseAPIWithImageSupport.ts:17
Methods
fetch
▸ Protected
fetch(url
, jsonResponse
, method
, payload?
): Promise
<Response
>
Parameters
Name | Type |
---|---|
url |
string |
jsonResponse |
false |
method |
HEAD |
payload? |
undefined |
Returns
Promise
<Response
>
Inherited from
Defined in
▸ Protected
fetch(url
, jsonResponse
, method?
, payload?
): Promise
<any
>
Parameters
Name | Type |
---|---|
url |
string |
jsonResponse |
true |
method? |
FetchMethod |
payload? |
Record <string , any > |
Returns
Promise
<any
>
Inherited from
Defined in
▸ Protected
fetch(url
, jsonResponse?
, method?
, payload?
): Promise
<string
>
Parameters
Name | Type |
---|---|
url |
string |
jsonResponse? |
boolean |
method? |
FetchMethod |
payload? |
Record <string , any > |
Returns
Promise
<string
>
Inherited from
Defined in
getDiscography
▸ getDiscography(params
): Promise
<(Track
| Album
)[]>
Parameters
Name | Type |
---|---|
params |
BandAPIGetDiscographyParams |
Returns
Overrides
Defined in
getInfo
▸ getInfo(params
): Promise
<Label
| Artist
>
Parameters
Name | Type |
---|---|
params |
BandAPIGetInfoParams |
Returns
Overrides
Defined in
getLabelArtists
▸ getLabelArtists(params
): Promise
<LabelArtist
[]>
Parameters
Name | Type |
---|---|
params |
BandAPIGetLabelArtistsParams |
Returns
Promise
<LabelArtist
[]>