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)Last updated
Was this helpful?