getRecommendationResultsCRT
suspend fun getRecommendationResultsCRT( podId: String, facets: List<Pair<String, List<String>>>? = null, numResults: Int? = null, sectionName: String? = null, itemId: String? = null, term: String? = null, variationsMap: VariationsMap? = null, preFilterExpression: String? = null, hiddenFields: List<String>? = null): RecommendationsResponse
Content copied to clipboard
Returns a list of recommendation results including filters, categories, sort options, etc.
Example:
runBlocking {
launch {
try {
val recommendationResults = constructorIo.getRecommendationResultsCRT("product_detail_page")
// Do something with recommendationResults
} catch (e: Exception) {
println(e)
}
}
}
Content copied to clipboard
Parameters
podId
the pod id
facets
additional facets used to refine results
numResults
the number of results to return
sectionName
the section the selection will come from, i.e. "Products"
itemId
: The item id to retrieve recommendations (strategy specific)
term
: The term to use to refine results (strategy specific)
variationsMap
specify which attributes within variations should be returned
preFilterExpression
faceting expression to scope results