Setup the SDK
To setup the SDK you will have to create a token from the dashboard.
Click on the settings icon on the top-right and create an API Key specifying the permissions
Then you will have to initialize the SDK with the token created, depending if you are using iOS or Android, as you can see in the following step.
iOS
Android
โ€‹
1
import MBurger
2
โ€‹
3
...
4
โ€‹
5
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
6
MBManager.shared().apiToken = "YOUR_API_TOKEN"
7
return true
8
}
Copied!
โ€‹
1
public class App extends Application {
2
โ€‹
3
@Override
4
public void onCreate() {
5
MBurger.initialize(API_TOKEN, false)
6
}
7
}
Copied!
Last modified 1yr ago
Copy link