Links

Get a section by SLUG

cURL
iOS SDK
Android SDK
PHP SDK
JS SDK
Flutter SDK
curl https://mburger.cloud/api/sections/<slug>?use_slug=true
-H "Accept: application/json"
-H "X-MBurger-Token: <token>"
-H "X-MBurger-Version: 3"
MBClient.getSection(withSlug: "SLUG_OF_THE_SECTION",
success: { section in
},
failure: { error in
})
val sectionWSlugListener = object: MBSectionWithSlugResultListener{
override fun onSectionApiError(error: String) {
}
​
override fun onSectionApiResult(section: MBSection,
slug: String) {
}
}
MBurgerTasks.askForSectionWithSlug(context = applicationContext,
slug = SECITON_SLUG,
getElements = true,
listener = sectionWSlugListener)
$response = (new MBurger())->locale(<locale>)->forceSlug()->getSection(<slug>);
const mburger = require('mburger');
​
const instance = mburger.createClient({
api_key: "12578sdfghjkl",
});
​
let latitude = 44.542,
longitude = 10.452;
​
instance.getSection({
section_id: 'introducing-seo'
}).then(result => console.log(result));
​
MBSection section = await MBManager.shared.getSectionWithSlug(
slug: 'slug',
includeElements: true,
);