Swiftpack.co -  gofynd/fdk-client-swift as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
gofynd/fdk-client-swift
Fynd Development Kit(FDK) for Swift 
.package(url: "https://github.com/gofynd/fdk-client-swift.git", from: "0.0.2")

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 - ApplicationClient

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

guard let config = PlatformConfig(companyId: "COMPANY_ID", 
                                  apiKey: "API_KEY", 
                                  apiSecret: "API_SECRET", 
                                  domain: "DOMAIN") {
    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)
    }
}

Documentation

GitHub

link
Stars: 2
Last commit: 4 hours ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

2 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API