> For the complete documentation index, see [llms.txt](https://docs.mburger.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mburger.cloud/ios-docs/sample-apps/mburger-explorer.md).

# MBurger Explorer

At [this repository](https://gitlab.mumbleserver.it/iOS/MBurgerExplore) you’ll find a comprehensive, full-force sample app, with:

* Home page
* Photo gallery
* Custom WYSIWYG
* Contact data
* Points of interest
* List of partners
* News list with detail.

This sample teaches the basics on how to use MBurger:

* Install the SDK
* Initialize the SDK
* Fetch Blocks and Sections
* Use Filters

### App Requirements

* Xcode 9
* CocoaPods 1.5.3
* Dependencies: [MBurger](https://github.com/Mumble-SRL/MBPayments-iOS), [SWRevealViewController](https://github.com/John-Lluch/SWRevealViewController)

### MBurger Usage and tutorial

MBurger is initialized in the&#x20;

**`AppDelegate application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:`**&#x20;

function with a demo **`API KEY`**.&#x20;

It’s essential to initialize Nooko at the start of the application or you won't be able to use the SDK API:

```bash
MBManager.shared().apiToken = “8e4d4521516289755c8d33e61cc0ca08c800c2ec”
```

This sample uses the `MBClient` class to retrieve data from the MBurger dashboard using the function **`getSectionsWithBlockId:`** and then by mapping the results to custom objects with a mapping dictionary.

![MBurgerExplorer1](https://docs.mumbleideas.it/mburger/ios/images/MBurgerExplorer1.png) ![MBurgerExplorer2](https://docs.mumbleideas.it/mburger/ios/images/MBurgerExplorer2.png)
