bandcamp-fetch • Docs
bandcamp-fetch / ArticleAPI
new ArticleAPI(
params
):ArticleAPI
• params: BaseAPIWithImageSupportParams
BaseAPIWithImageSupport
.constructor
lib/common/BaseAPIWithImageSupport.ts:12
get
protected
cache():Cache
get imageAPI():
ImageAPI
BaseAPIWithImageSupport
.imageAPI
lib/common/BaseAPIWithImageSupport.ts:17
protected
fetch(url
,jsonResponse
,method
,payload
?):Promise
<object
>
• url: string
• jsonResponse: false
• method: HEAD
• payload?: undefined
Promise
<object
>
ok:
boolean
status:
number
protected
fetch(url
,jsonResponse
,method
?,payload
?):Promise
<any
>
• url: string
• jsonResponse: true
• method?: FetchMethod
• payload?: Record
<string
, any
>
Promise
<any
>
protected
fetch(url
,jsonResponse
?,method
?,payload
?):Promise
<string
>
• url: string
• jsonResponse?: boolean
• method?: FetchMethod
• payload?: Record
<string
, any
>
Promise
<string
>
getArticle(
params
):Promise
<Article
>
• params: ArticleAPIGetArticleParams
Promise
<Article
>
getCategories():
Promise
<ArticleCategorySection
[]>
Promise
<ArticleCategorySection
[]>
list(
params
?):Promise
<ArticleList
>
• params?: ArticleAPIListParams
Promise
<ArticleList
>