Basic Usage

This library uses DI by Koin so you'll have to add below code to your application class
class App : BaseApplication() {
​
override fun onCreate() {
super.onCreate()
​
// make sure you add this to your application class
startKoin {
androidContext(this@App)
modules(instagramX)
}
​
}
}
Now you can initialise the InstagramApi by injection
val instagramApi: InstagramApi by inject()
then use this to init the InstagramX class
val instagramX = InstagramX(instagramApi)