This is RealtyFeedSDK for Android apps.
There are two ways to add the RealtyFeedSDK into your project:
dependencies {
implementation 'com.github.realtyna:RealtyFeedSDK-Android:0.0.2'
}
- B) Download the RealtyFeedSDK latest release from Github and add it as local library
Add the RealtyFeedSDK initialization code to App.kt.
class App : MultiDexApplication() {
override fun onCreate() {
super.onCreate()
RealtyFeedSDK.initial("YOUR-API-KEY", "YOUR-RAPID-API-KEY")
}
}
Make sure to import the RealtyFeedSDK header:
import com.realtyna.realtyfeedsdk.RealtyFeedSDK
import com.realtyna.realtyfeedsdk.API
RealtyFeedSDK.initial("YOUR-API-KEY", "YOUR-RAPID-API-KEY")
YOUR-API-KEY with your RealtyFeedSDK API Key. YOUR-RAPID-API-KEY with your Rapid API Key.
Now you can call RealtyFeedSDK APIs anywhere of your project,
API.instance.getListings { result, error ->
Log.d("Done", result)
}
API.instance.getProperty("P_5dba1fb94aa4055b9f29691f") { result, error ->
Log.d("Done", result)
}