4.7 KiB
4.7 KiB
bandcamp-fetch / LimiterArticleAPI
Class: LimiterArticleAPI
Hierarchy
-
↳
LimiterArticleAPI
Table of contents
Constructors
Accessors
Methods
Constructors
constructor
• new LimiterArticleAPI(params
)
Parameters
Name | Type |
---|---|
params |
BaseAPIWithImageSupportParams & { limiter : Limiter } |
Overrides
Defined in
Accessors
cache
• Protected
get
cache(): Cache
Returns
Inherited from
ArticleAPI.cache
Defined in
imageAPI
• get
imageAPI(): ImageAPI
Returns
Inherited from
ArticleAPI.imageAPI
Defined in
lib/common/BaseAPIWithImageSupport.ts:17
Methods
fetch
▸ Protected
fetch(url
, jsonResponse
, method
, payload?
): Promise
<Response
>
Parameters
Name | Type |
---|---|
url |
string |
jsonResponse |
false |
method |
HEAD |
payload? |
undefined |
Returns
Promise
<Response
>
Inherited from
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
>
Inherited from
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
>
Inherited from
Defined in
getArticle
▸ getArticle(params
): Promise
<Article
>
Parameters
Name | Type |
---|---|
params |
ArticleAPIGetArticleParams |
Returns
Promise
<Article
>
Overrides
Defined in
getCategories
▸ getCategories(): Promise
<ArticleCategorySection
[]>
Returns
Promise
<ArticleCategorySection
[]>
Overrides
Defined in
list
▸ list(params?
): Promise
<ArticleList
>
Parameters
Name | Type |
---|---|
params? |
ArticleAPIListParams |
Returns
Promise
<ArticleList
>