9.4 KiB
bandcamp-fetch / LimiterSearchAPI
Class: LimiterSearchAPI
Hierarchy
-
↳
LimiterSearchAPI
Table of contents
Constructors
Accessors
Methods
Constructors
constructor
• new LimiterSearchAPI(params
)
Parameters
Name | Type |
---|---|
params |
BaseAPIWithImageSupportParams & { limiter : Limiter } |
Overrides
Defined in
Accessors
cache
• Protected
get
cache(): Cache
Returns
Inherited from
SearchAPI.cache
Defined in
imageAPI
• get
imageAPI(): ImageAPI
Returns
Inherited from
SearchAPI.imageAPI
Defined in
lib/common/BaseAPIWithImageSupport.ts:17
Methods
albums
▸ albums(params
): Promise
<SearchResults
<SearchResultAlbum
>>
Parameters
Name | Type |
---|---|
params |
SearchAPISearchParams |
Returns
Promise
<SearchResults
<SearchResultAlbum
>>
Overrides
Defined in
all
▸ all(params
): Promise
<SearchResults
<SearchResultAny
>>
Parameters
Name | Type |
---|---|
params |
SearchAPISearchParams |
Returns
Promise
<SearchResults
<SearchResultAny
>>
Overrides
Defined in
artistsAndLabels
▸ artistsAndLabels(params
): Promise
<SearchResults
<SearchResultArtist
| SearchResultLabel
>>
Parameters
Name | Type |
---|---|
params |
SearchAPISearchParams |
Returns
Promise
<SearchResults
<SearchResultArtist
| SearchResultLabel
>>
Overrides
Defined in
fans
▸ fans(params
): Promise
<SearchResults
<SearchResultFan
>>
Parameters
Name | Type |
---|---|
params |
SearchAPISearchParams |
Returns
Promise
<SearchResults
<SearchResultFan
>>
Overrides
Defined in
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
search
▸ Protected
search(params
): Promise
<SearchResults
<SearchResultAlbum
>>
Parameters
Name | Type |
---|---|
params |
SearchAPISearchParams & { itemType : Albums } |
Returns
Promise
<SearchResults
<SearchResultAlbum
>>
Inherited from
Defined in
▸ Protected
search(params
): Promise
<SearchResults
<SearchResultTrack
>>
Parameters
Name | Type |
---|---|
params |
SearchAPISearchParams & { itemType : Tracks } |
Returns
Promise
<SearchResults
<SearchResultTrack
>>
Inherited from
Defined in
▸ Protected
search(params
): Promise
<SearchResults
<SearchResultFan
>>
Parameters
Name | Type |
---|---|
params |
SearchAPISearchParams & { itemType : Fans } |
Returns
Promise
<SearchResults
<SearchResultFan
>>
Inherited from
Defined in
▸ Protected
search(params
): Promise
<SearchResults
<SearchResultAny
>>
Parameters
Name | Type |
---|---|
params |
SearchAPISearchParams & { itemType : All } |
Returns
Promise
<SearchResults
<SearchResultAny
>>
Inherited from
Defined in
tracks
▸ tracks(params
): Promise
<SearchResults
<SearchResultTrack
>>
Parameters
Name | Type |
---|---|
params |
SearchAPISearchParams |
Returns
Promise
<SearchResults
<SearchResultTrack
>>