Skip to content

Latest commit

 

History

History
225 lines (113 loc) · 5.17 KB

LimiterDiscoveryAPI.md

File metadata and controls

225 lines (113 loc) · 5.17 KB

bandcamp-fetchDocs


bandcamp-fetch / LimiterDiscoveryAPI

Class: LimiterDiscoveryAPI

Extends

Constructors

new LimiterDiscoveryAPI()

new LimiterDiscoveryAPI(params): LimiterDiscoveryAPI

Parameters

params: BaseAPIWithImageSupportParams & object

Returns

LimiterDiscoveryAPI

Overrides

DiscoveryAPI.constructor

Defined in

lib/discovery/DiscoveryAPI.ts:149

Accessors

cache

Get Signature

get protected cache(): Cache

Returns

Cache

Inherited from

DiscoveryAPI.cache

Defined in

lib/common/BaseAPI.ts:27


imageAPI

Get Signature

get imageAPI(): ImageAPI

Returns

ImageAPI

Inherited from

DiscoveryAPI.imageAPI

Defined in

lib/common/BaseAPIWithImageSupport.ts:17

Methods

discover()

discover(params): Promise<DiscoverResult>

Parameters

params: DiscoverParams

Returns

Promise<DiscoverResult>

Overrides

DiscoveryAPI.discover

Defined in

lib/discovery/DiscoveryAPI.ts:162


fetch()

fetch(url, jsonResponse, method, payload)

protected fetch(url, jsonResponse, method, payload?): Promise<object>

Parameters

url: string

jsonResponse: false

method: HEAD

payload?: undefined

Returns

Promise<object>

ok

ok: boolean

status

status: number

Inherited from

DiscoveryAPI.fetch

Defined in

lib/common/BaseAPI.ts:20

fetch(url, jsonResponse, method, payload)

protected fetch(url, jsonResponse, method?, payload?): Promise<any>

Parameters

url: string

jsonResponse: true

method?: FetchMethod

payload?: Record<string, any>

Returns

Promise<any>

Inherited from

DiscoveryAPI.fetch

Defined in

lib/common/BaseAPI.ts:21

fetch(url, jsonResponse, method, payload)

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

Parameters

url: string

jsonResponse?: boolean

method?: FetchMethod

payload?: Record<string, any>

Returns

Promise<string>

Inherited from

DiscoveryAPI.fetch

Defined in

lib/common/BaseAPI.ts:22


getAvailableOptions()

getAvailableOptions(): Promise<DiscoverOptions>

Returns

Promise<DiscoverOptions>

Overrides

DiscoveryAPI.getAvailableOptions

Defined in

lib/discovery/DiscoveryAPI.ts:154


sanitizeDiscoverParams()

sanitizeDiscoverParams(params): Promise<SanitizedDiscoverParams>

Parameters

params: DiscoverParams

Returns

Promise<SanitizedDiscoverParams>

Overrides

DiscoveryAPI.sanitizeDiscoverParams

Defined in

lib/discovery/DiscoveryAPI.ts:158