What steps should I follow to install and integrate the Kotlin FDK Client?
To install and integrate Kotlin FDK Client, follow these steps:
-
Add the dependency in your
app build.gradlefile. You can do this by adding the following line of codeimplementation 'com.github.gofynd:fdk-client-kotlin:v0.0.7'. -
Add the URL ‘https://jitpack.io’ in your root
build.gradleat the end of repositories. -
Start integrating by using the
ApplicationClientor thePlatformClientdepending on your needs. You would need to provide specific configuration details in their constructors like Application ID and token forApplicationClientand Company ID, API Key, API Secret and domain forPlatformClient. -
Finally, you can invoke methods like
getProductDetailBySlugforApplicationClientorgetCompanyDetailforPlatformClient.
You can find detailed instructions and examples here.