Build with short ref
What are short_url?
short_url is the short URL you get from a link you created.
In this short guide, we will cover how you can seamlessly implement a short URL in a Flutter and Android integration during widget integration.
Flutter
To use a short URL in a flutter app, simply pass in the request body as it is in the snippet below.
NOTE: Ensure you specify your environment, which could be production or sandbox
var okraOptions = {
"env": "production",
"short_url": "core-step"
};
OkraHandler reply = await Okra.create(context, okraOptions);
Android
As it is with the flutter implementation, to use a short URL in an Andriod app, pass the request body as it is in the snippet below.
Map<String, Object> dataMap = new HashMap<String, Object>() {{
put("env", "production");
put("short_url", "core-step");
}};
Okra.create(MainActivity.this, dataMap);
You can check the Andriod and Flutter guide, to learn how you could use other integration medium.