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
-
Request API Key
-
Register SDK in App
//import SDK import FoxOneOpenSDK //Register OpenSDK.registerSDK(key: "key", delegate: self)
-
Implement SDK Delegate
extension AppDelegate: OpenSDKProtcol { //session token func f1AccessToken() -> String { return "" }
func f1PublicKey() -> String {
return ""
}
func f1PIN() -> String {
return ""
}
}
```
-
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