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

2.8 KiB

bandcamp-fetch / BaseAPIWithImageSupport

Class: BaseAPIWithImageSupport

Hierarchy

Table of contents

Constructors

Accessors

Methods

Constructors

constructor

new BaseAPIWithImageSupport(params)

Parameters

Name Type
params BaseAPIWithImageSupportParams

Overrides

BaseAPI.constructor

Defined in

lib/common/BaseAPIWithImageSupport.ts:12

Accessors

cache

Protected get cache(): Cache

Returns

Cache

Inherited from

BaseAPI.cache

Defined in

lib/common/BaseAPI.ts:25


imageAPI

get imageAPI(): ImageAPI

Returns

ImageAPI

Defined in

lib/common/BaseAPIWithImageSupport.ts:17

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>

Inherited from

BaseAPI.fetch

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>

Inherited from

BaseAPI.fetch

Defined in

lib/common/BaseAPI.ts:20