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)$response = (new MBurger())->getBlocks();const mburger = require('mburger');
const instance = mburger.createClient({
    api_key: "12345789asdfghjkl",
});
instance.getBlocks({
    block_ids: [798, 799],
    locale: 'it'
}).then(result => console.log(result));MBPaginatedResponse<MBBlock> blocks = await MBManager.shared.getBlocks();Last updated
Was this helpful?
