bandcamp-fetch/docs/api/classes/TrackAPI.md
2023-10-28 20:55:26 +08:00

3.2 KiB

bandcamp-fetch / TrackAPI

Class: TrackAPI

Hierarchy

Table of contents

Constructors

Accessors

Methods

Constructors

constructor

new TrackAPI(params)

Parameters

Name Type
params BaseAPIWithImageSupportParams

Inherited from

BaseAPIWithImageSupport.constructor

Defined in

lib/common/BaseAPIWithImageSupport.ts:12

Accessors

cache

Protected get cache(): Cache

Returns

Cache

Inherited from

BaseAPIWithImageSupport.cache

Defined in

lib/common/BaseAPI.ts:25


imageAPI

get imageAPI(): ImageAPI

Returns

ImageAPI

Inherited from

BaseAPIWithImageSupport.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

BaseAPIWithImageSupport.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

BaseAPIWithImageSupport.fetch

Defined in

lib/common/BaseAPI.ts:20


getInfo

getInfo(params): Promise<Track>

Parameters

Name Type
params TrackAPIGetInfoParams

Returns

Promise<Track>

Defined in

lib/track/TrackAPI.ts:15