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.gradle
file. 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.gradle
at the end of repositories. -
Start integrating by using the
ApplicationClient
or thePlatformClient
depending on your needs. You would need to provide specific configuration details in their constructors like Application ID and token forApplicationClient
and Company ID, API Key, API Secret and domain forPlatformClient
. -
Finally, you can invoke methods like
getProductDetailBySlug
forApplicationClient
orgetCompanyDetail
forPlatformClient
.
You can find detailed instructions and examples here.