3.4 KiB
3.4 KiB
bandcamp-fetch / BaseAPIWithImageSupport
Class: BaseAPIWithImageSupport
Hierarchy
-
↳
BaseAPIWithImageSupport
↳↳
AlbumAPI
↳↳
ArticleAPI
↳↳
BandAPI
↳↳
DiscoveryAPI
↳↳
FanAPI
↳↳
ShowAPI
↳↳
TagAPI
↳↳
TrackAPI
↳↳
SearchAPI
Table of contents
Constructors
Accessors
Methods
Constructors
constructor
• new BaseAPIWithImageSupport(params
)
Parameters
Name | Type |
---|---|
params |
BaseAPIWithImageSupportParams |
Overrides
Defined in
lib/common/BaseAPIWithImageSupport.ts:12
Accessors
cache
• Protected
get
cache(): Cache
Returns
Inherited from
BaseAPI.cache
Defined in
imageAPI
• get
imageAPI(): ImageAPI
Returns
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
>