get Recommendation Results
Returns a list of recommendation results for the specified pod.
Example:
ConstructorIo.getRecommendationResults(podId, selectedFacets?.map { it.key to it.value }, numResults)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe {
it.onValue {
it.response?.let {
view.renderData(it)
}
}
}
Parameters
the pod id
additional facets used to refine results
the number of results to return
the section the selection will come from, i.e. "Products"
: The item id to retrieve recommendations (strategy specific)
: The term to use to refine results (strategy specific)
specify which attributes within variations should be returned
faceting expression to scope results
show fields that are hidden by default
Returns a list of recommendation results for the specified pod.
Example:
val request = RecommendationsRequest.Builder("product_detail_page")
.setItemIds(listOf("item_id_123"))
.build()
ConstructorIo.getRecommendationResults(request)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe {
it.onValue {
it?.let {
view.renderData(it)
}
}
}
Parameters
the pod id
additional filters used to refine results
the list of item ids to retrieve recommendations for (strategy specific)
the term to use to refine results (strategy specific)
the number of results to return
the section the results will come from, i.e. "Products"
specify which attributes within variations should be returned
faceting expression to scope results