get Browse Results CRT
suspend fun getBrowseResultsCRT( filterName: String, filterValue: String, facets: List<Pair<String, List<String>>>? = null, page: Int? = null, perPage: Int? = null, groupId: Int? = null, sortBy: String? = null, sortOrder: String? = null, sectionName: String? = null, hiddenFields: List<String>? = null, hiddenFacets: List<String>? = null, groupsSortBy: String? = null, groupsSortOrder: String? = null, variationsMap: VariationsMap? = null, preFilterExpression: String? = null, fmtOptions: Map<String, Any>? = null): BrowseResponse
Content copied to clipboard
Returns a list of browse results including filters, categories, sort options, etc. This function should be called within a coroutine scope.
Example:
runBlocking {
launch {
try {
val browseResults = constructorIo.getBrowseResultsCRT("group_id", "888")
// Do something with browseResults
} catch (e: Exception) {
println(e)
}
}
}
Content copied to clipboard
Parameters
filter Name
filter name to display results from
filter Value
filter value to display results from
facets
additional facets used to refine results
page
the page number of the results
per Page
The number of results per page to return
group Id
category facet used to refine results
sort By
the sort method for results
sort Order
the sort order for results
section Name
the section the results will come from defaults to "Products"
hidden Fields
show fields that are hidden by default
hidden Facets
show facets that are hidden by default
groups Sort By
the sort method for groups
groups Sort Order
the sort order for groups
variations Map
specify which attributes within variations should be returned
pre Filter Expression
faceting expression to scope results
fmt Options
additional format options to pass