Latest 1.3.0
Homepage https://github.com/fox-one/foxone-ios-opensdk
License Apache License 2.0
Platforms ios 8.3, requires ARC
Dependencies Alamofire, SwiftyJSON, SwiftyRSA, CryptoSwift
Authors

Fox.ONE Open SDK for Swift

Integrate your app with Fox.One open SDK, Including:

  • Withdraw
  • Deposit
  • Assets Overview
  • Transation Record
  • PIN

Installation

CocoaPods

Make sure you are running the latest version of CocoaPods by running:

gem install cocoapods

# (or if the above fails)
sudo gem install cocoapods

Add the following lines to your Podfile:

pod 'FoxOneOpenSDK'

Run pod install

Using Open SDK in your APP

  1. Request API Key

  2. Register SDK in App

    //import SDK
    import FoxOneOpenSDK
    
    //Register
    OpenSDK.registerSDK(key: "key", delegate: self)
  3. Implement SDK Delegate

    extension AppDelegate: OpenSDKProtcol {
        //session token 
        func f1AccessToken() -> String {
            return ""
        }
    
        func f1PublicKey() -> String {
            return ""
        }
    
        func f1PIN() -> String {
            return  ""
        }
    }
  4. API SDK Service

    OpenSDKService.getAssets { completion in
                switch completion {
                case .success(let assets):
                    self.handle(assets: assets)
                case .failure:
                    break
                }
            }

    API

    • API – The OpenSDKService API

Give Feedback

[email protected]

Latest podspec

{
    "name": "FoxOneOpenSDK",
    "version": "1.3.0",
    "summary": "FoxOne Open SDK",
    "description": "FoxOne Open SDK for iOS",
    "homepage": "https://github.com/fox-one/foxone-ios-opensdk",
    "license": "Apache License 2.0",
    "authors": {
        "moubuns": "[email protected]"
    },
    "platforms": {
        "ios": "8.3"
    },
    "source": {
        "git": "https://github.com/fox-one/foxone-ios-opensdk.git",
        "tag": "1.3.0"
    },
    "source_files": "opensdk/opensdk/**/*.swift",
    "resources": "opensdk/opensdk/Resource/**/*.*",
    "swift_version": "4.2",
    "requires_arc": true,
    "dependencies": {
        "Alamofire": [],
        "SwiftyJSON": [],
        "SwiftyRSA": [],
        "CryptoSwift": []
    }
}

Pin It on Pinterest

Share This