bandcamp-fetch/docs/api/classes/BaseAPI.md
2023-10-29 02:34:52 +08:00

1.9 KiB

bandcamp-fetch / BaseAPI

Class: BaseAPI

Hierarchy

Table of contents

Constructors

Accessors

Methods

Constructors

constructor

new BaseAPI(params)

Parameters

Name Type
params BaseAPIParams

Defined in

lib/common/BaseAPI.ts:14

Accessors

cache

Protected get cache(): Cache

Returns

Cache

Defined in

lib/common/BaseAPI.ts:25

Methods

fetch

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

lib/common/BaseAPI.ts:19

Protected fetch(url, jsonResponse?, method?, payload?): Promise<string>

Parameters

Name Type
url string
jsonResponse? boolean
method? FetchMethod
payload? Record<string, any>

Returns

Promise<string>

Defined in

lib/common/BaseAPI.ts:20