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.
Param | Type | Description |
---|---|---|
limit | number | The number of top categories to fetch. |