Get Multiple Sections
curl --location -g
--request GET 'https://mburger.cloud/api/blocks/884/sections?filter[id]=10088,10047&include=elements' \
--header 'Accept: application/json' \
--header 'X-MBurger-Version: 3' \
--header 'X-MBurger-Token: 1234567890qwertyuiop' \
MBClient.getSections(ofBlock: BLOCK_ID,
elements: true,
success: { (sections, paginationInfo) in
},
failure: { error in
})val sectionsListener = object: MBSectionsResultListener{
override fun onSectionsApiError(error: String) {
}
override fun onSectionsApiResult(sections: ArrayList<MBSection>,
block_id: Long,
paginationInfos: MBPaginationInfo) {
}
}
MBurgerTasks.askForSections(context = applicationContext,
block_id = BLOCK_ID,
filters = null,
getElements = true,
listener = sectionsListener)Last updated
Was this helpful?