Get a single Section
curl https://mburger.cloud/api/sections/<id-or-slug>
-H "Accept: application/json"
-H "X-MBurger-Token: <token>"
-H "X-MBurger-Version: 3"
MBClient.getSection(withId: SECTION_ID,
elements: true,
success: { section in
},
failure: { error in
})
val sectionListener = object: MBSectionResultListener {
override fun onSectionApiError(error: String) {
}
override fun onSectionApiResult(section: MBSection,
section_id: Long) {
}
}
MBurgerTasks.askForSection(context = applicationContext,
section_id = SECTION_ID,
getElements = true,
listener = sectionListener)
$response = (new MBurger())->getSection($section_id_or_slug);
const mburger = require('mburger');
const instance = mburger.createClient({
api_key: "12578sdfghjkl",
});
instance.getSection({
section_id: 8026
}).then(result => console.log(result));
MBSection section = await MBManager.shared.getSection(
sectionId: SECTION_ID,
includeElements: true,
);
Last updated