What are the steps to install and implement the Swift FDK Client? Can we discuss some examples of its usage?
To install the Swift FDK Client, we follow the steps below:
- Add
pod 'FDKClient', :git => 'https://github.com/gofynd/fdk-client-swift'
to your Podfile. - Run
pod install
in your terminal. - Add
import FDKClient
to the Swift files where you’ll be using the client. - Then you can start the integration process.
Example usage of Swift FDK Client include:
- Usage of PublicClient to fetch all webhook events.
- An ApplicationClient to get product details using a product slug. This requires the unique Application ID and Token.
- A PlatformClient to get company details, which needs the company ID, API key, and API secret.
You can visit this link for more detailed information.
Remember to replace all placeholders (like ‘YOUR_APPLICATION_ID’, ‘API_KEY’, etc.) with actual values supplied for your application or platform.