Get a Single Block
curl https://mburger.cloud/api/blocks/<id>
-H "Accept: application/json"
-H "X-MBurger-Token: <token>"
-H "X-MBurger-Version: 3"
MBClient.getBlock(withId: BLOCK_ID,
success: { block in
},
failure: { error in
})
val blockListener = object: MBBlockResultListener{
override fun onBlockApiError(error: String) {
}
override fun onBlockApiResult(block: MBBlock) {
}
}
MBurgerTasks.askForBlock(context = applicationContext,
block_id = BLOCK_ID,
getSections = true,
listener = blockListener)
$response = (new MBurger())->getBlock($block_id);
const mburger = require('mburger');
const instance = mburger.createClient({
api_key: "123456789asdfghjkl",
});
instance.getBlock({
block_id: 798,
locale: 'it',
original_media: false
}).then(result => console.log(result));
MBBlock block = await MBManager.shared.getBlock(blockId: BLOCK_ID);
Last updated