2.4 KiB
2.4 KiB
bandcamp-fetch / BaseAPI
Class: BaseAPI
Hierarchy
-
BaseAPI
↳
ImageAPI
Table of contents
Constructors
Accessors
Methods
Constructors
constructor
• new BaseAPI(params
)
Parameters
Name | Type |
---|---|
params |
BaseAPIParams |
Defined in
Accessors
cache
• Protected
get
cache(): Cache
Returns
Defined in
Methods
fetch
▸ Protected
fetch(url
, jsonResponse
, method
, payload?
): Promise
<Response
>
Parameters
Name | Type |
---|---|
url |
string |
jsonResponse |
false |
method |
HEAD |
payload? |
undefined |
Returns
Promise
<Response
>
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
>
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
>