get Browse Items Results
fun getBrowseItemsResults(request: BrowseItemsRequest): Observable<ConstructorData<BrowseResponse>>
Content copied to clipboard
Returns a list of browse results from a list of item IDs including filters, categories, sort options, etc. utilizing a request object.
Example:
val filters = mapOf(
"group_id" to listOf("G1234"),
"Brand" to listOf("Cnstrc")
"Color" to listOf("Red", "Blue")
)
val request = BrowseItemsRequest.Builder("group_id", "123")
.setFilters(filters)
.setHiddenFacets(listOf("hidden_facet_1", "hidden_facet_2"))
.build()
ConstructorIo.getBrowseItemsResults(request)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe {
it.onValue {
it?.let {
view.renderData(it)
}
}
}
Content copied to clipboard
Parameters
request
the browse request object