7.5 KiB
bandcamp-fetch / FanAPI
Class: FanAPI
Hierarchy
-
↳
FanAPI
Table of contents
Constructors
Accessors
Methods
Constructors
constructor
• new FanAPI(params
)
Parameters
Name | Type |
---|---|
params |
BaseAPIWithImageSupportParams |
Inherited from
BaseAPIWithImageSupport.constructor
Defined in
lib/common/BaseAPIWithImageSupport.ts:12
Accessors
cache
• Protected
get
cache(): Cache
Returns
Inherited from
BaseAPIWithImageSupport.cache
Defined in
imageAPI
• get
imageAPI(): ImageAPI
Returns
Inherited from
BaseAPIWithImageSupport.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
>>>
Defined in
getFollowingArtistsAndLabels
▸ getFollowingArtistsAndLabels(params
): Promise
<FanPageItemsResult
<UserKind
> | FanContinuationItemsResult
<UserKind
>>
Parameters
Name | Type |
---|---|
params |
FanAPIGetItemsParams |
Returns
Promise
<FanPageItemsResult
<UserKind
> | FanContinuationItemsResult
<UserKind
>>
Defined in
getFollowingGenres
▸ getFollowingGenres(params
): Promise
<FanPageItemsResult
<Tag
> | FanContinuationItemsResult
<Tag
>>
Parameters
Name | Type |
---|---|
params |
FanAPIGetItemsParams |
Returns
Promise
<FanPageItemsResult
<Tag
> | FanContinuationItemsResult
<Tag
>>
Defined in
getInfo
▸ getInfo(params
): Promise
<Fan
>
Parameters
Name | Type |
---|---|
params |
FanAPIGetInfoParams |
Returns
Promise
<Fan
>
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
>>>