Skip to main content

fetchCategories

Constants​

fetchCategories ⇒ Promise.<Object>

Fetch all categories.

fetchTopCategories ⇒ Promise.<Object>

Fetch top categories.

fetchCategories ⇒ Promise.<Object>​

Fetch all categories.

Kind: global constant
Returns: Promise.<Object> - The response data.
Throws:

  • Error If the response status is not 200.

fetchTopCategories ⇒ Promise.<Object>​

Fetch top categories.

Kind: global constant
Returns: Promise.<Object> - The response data.
Throws:

  • Error If the response status is not 200.
ParamTypeDescription
limitnumberThe number of top categories to fetch.