Skip to main content

Get All Categories

Usage

Get All the site categories that are enabled in Fast Simon App

Example

window.FastSimonSDK.getAllCategories({
callback: (result) => {
// handle here
}
});

or

window.FastSimonSDK.getAllCategories().then(r => {
// handle here
});

Options

OptionTypeDescription
callback(Response) => void (required when promised is not used)Callback to handle the results

Response

TypeScript Typing
type Response = Category[]