https://github.com/gofynd/fdk-client-swift
Fynd Development Kit(FDK) for Swift
https://github.com/gofynd/fdk-client-swift
fdk
Last synced: about 2 months ago
JSON representation
Fynd Development Kit(FDK) for Swift
- Host: GitHub
- URL: https://github.com/gofynd/fdk-client-swift
- Owner: gofynd
- License: mit
- Created: 2021-02-11T05:38:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2026-04-02T19:31:01.000Z (2 months ago)
- Last Synced: 2026-04-03T06:37:31.628Z (2 months ago)
- Topics: fdk
- Language: Swift
- Homepage:
- Size: 313 MB
- Stars: 5
- Watchers: 7
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# FDK Swift
FDK client for Swift language
## Getting Started
Get started with the Swift Development SDK for Fynd Platform
### Usage
1. Add `pod 'FDKClient', :git => 'https://github.com/gofynd/fdk-client-swift'`
2. Do `pod install`
3. Add `import FDKClient`
4. Start integrating
### Sample Usage - PublicClient
```swift
let config = PublicConfig()
let publicClient = PublicClient(config: config)
publicClient.webhook.fetchAllWebhookEvents() { (webhookEvents, error) in
if let webhookEvents = webhookEvents {
print(webhookEvents.debugDescription)
} else if let error = error {
print(error.message)
}
}
```
### Sample Usage - ApplicationClient
```swift
guard let config = ApplicationConfig(
applicationId: "YOUR_APPLICATION_ID",
applicationToken: "YOUR_APPLICATION_TOKEN") {
return
}
let applicationClient = ApplicationClient(config: config)
applicationClient.catalog.getProductDetailBySlug(slug: "product-slug") { (product, error) in
if let product = product {
print(product.name)
} else if let error = error {
print(error.message)
}
}
```
### Sample Usage - PlatformClient
```swift
guard let config = PlatformConfig(
companyId: "COMPANY_ID",
apiKey: "API_KEY",
apiSecret: "API_SECRET") {
return
}
let platformClient = PlatformClient(config: config)
platformClient.catalog.getCompanyDetail { (response, error) in
if let companyDetail = response {
print("Name of the company \(companyDetail.name)")
} else if let error = error {
print(error.message)
}
}
```