Get multiple Blocks
curl https://mburger.cloud/api/blocks
-H "Accept: application/json"
-H "X-MBurger-Token: <token>"
-H "X-MBurger-Version: 3"MBClient.getBlocks(success: { (blocks, paginationInfo) in
},
failure: { error in
})val blocksListener = object: MBBlocksResultListener{
override fun onBlocksApiError(error: String) {
}
override fun onBlocksApiResult(blocks: ArrayList<MBBlock>,
paginationInfos: MBPaginationInfo) {
}
}
MBurgerTasks.askForBlocks(context = applicationContext,
filters = null,
getSections = true,
listener = blockListener)Last updated
Was this helpful?