Skip to main content

fetchCategories

Constants

fetchCategoriesPromise.<Object>

Fetch all categories.

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