getBrowseFacetOptionsCRT

suspend fun getBrowseFacetOptionsCRT(facetName: String, showHiddenFacets: Boolean? = null): BrowseFacetOptionsResponse

Returns a list of browse facet options results. This function should be called within a coroutine scope.

Example:

runBlocking {
    launch {
        try {
            val browseFacetOptionsResults = constructorIo.getBrowseFacetOptionsCRT("Brand", false)
            // Do something with browseFacetOptionsResults
        } catch (e: Exception) {
            println(e)
        }
    }
}

Parameters

facetName

name of the facet whose options to return

showHiddenFacets

show fields that are hidden by default