get Recommendation Results CRT
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
pod Id
the pod id
facets
additional facets used to refine results
num Results
the number of results to return
section Name
the section the selection will come from, i.e. "Products"
item Id
: The item id to retrieve recommendations (strategy specific)
term
: The term to use to refine results (strategy specific)
variations Map
specify which attributes within variations should be returned
pre Filter Expression
faceting expression to scope results