7.7 KiB
bandcamp-fetch / LimiterFanAPI
Class: LimiterFanAPI
Hierarchy
-
↳
LimiterFanAPI
Table of contents
Constructors
Accessors
Methods
Constructors
constructor
• new LimiterFanAPI(params
)
Parameters
Name | Type |
---|---|
params |
BaseAPIWithImageSupportParams & { limiter : Limiter } |
Overrides
Defined in
Accessors
cache
• Protected
get
cache(): Cache
Returns
Inherited from
FanAPI.cache
Defined in
imageAPI
• get
imageAPI(): ImageAPI
Returns
Inherited from
FanAPI.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
getCollection
▸ getCollection(params
): Promise
<FanPageItemsResult
<NonNullable
<null
| Track
| Album
>> | FanContinuationItemsResult
<NonNullable
<null
| Track
| Album
>>>
Parameters
Name | Type |
---|---|
params |
FanAPIGetItemsParams |
Returns
Promise
<FanPageItemsResult
<NonNullable
<null
| Track
| Album
>> | FanContinuationItemsResult
<NonNullable
<null
| Track
| Album
>>>
Overrides
Defined in
getFollowingArtistsAndLabels
▸ getFollowingArtistsAndLabels(params
): Promise
<FanPageItemsResult
<UserKind
> | FanContinuationItemsResult
<UserKind
>>
Parameters
Name | Type |
---|---|
params |
FanAPIGetItemsParams |
Returns
Promise
<FanPageItemsResult
<UserKind
> | FanContinuationItemsResult
<UserKind
>>
Overrides
FanAPI.getFollowingArtistsAndLabels
Defined in
getFollowingGenres
▸ getFollowingGenres(params
): Promise
<FanPageItemsResult
<Tag
> | FanContinuationItemsResult
<Tag
>>
Parameters
Name | Type |
---|---|
params |
FanAPIGetItemsParams |
Returns
Promise
<FanPageItemsResult
<Tag
> | FanContinuationItemsResult
<Tag
>>
Overrides
Defined in
getInfo
▸ getInfo(params
): Promise
<Fan
>
Parameters
Name | Type |
---|---|
params |
FanAPIGetInfoParams |
Returns
Promise
<Fan
>
Overrides
Defined in
getWishlist
▸ getWishlist(params
): Promise
<FanPageItemsResult
<NonNullable
<null
| Track
| Album
>> | FanContinuationItemsResult
<NonNullable
<null
| Track
| Album
>>>
Parameters
Name | Type |
---|---|
params |
FanAPIGetItemsParams |
Returns
Promise
<FanPageItemsResult
<NonNullable
<null
| Track
| Album
>> | FanContinuationItemsResult
<NonNullable
<null
| Track
| Album
>>>