https://github.com/fox-one/foxone-ios-opensdk
Fox.ONE Open SDK for Swift
https://github.com/fox-one/foxone-ios-opensdk
sdk swift4
Last synced: over 1 year ago
JSON representation
Fox.ONE Open SDK for Swift
- Host: GitHub
- URL: https://github.com/fox-one/foxone-ios-opensdk
- Owner: fox-one
- License: apache-2.0
- Created: 2018-08-30T07:02:23.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-15T02:42:18.000Z (over 7 years ago)
- Last Synced: 2025-03-06T08:57:45.812Z (over 1 year ago)
- Topics: sdk, swift4
- Language: Swift
- Homepage:
- Size: 95.7 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://cocoapods.org) by running:
```bash
gem install cocoapods
# (or if the above fails)
sudo gem install cocoapods
```
Add the following lines to your Podfile:
```ruby
pod 'FoxOneOpenSDK'
```
Run `pod install`
## Using Open SDK in your APP
1. Request API Key
2. Register SDK in App
```swift
//import SDK
import FoxOneOpenSDK
//Register
OpenSDK.registerSDK(key: "key", delegate: self)
```
3. Implement SDK Delegate
```swift
extension AppDelegate: OpenSDKProtcol {
//session token
func f1AccessToken() -> String {
return ""
}
func f1PublicKey() -> String {
return ""
}
func f1PIN() -> String {
return ""
}
}
```
4. API SDK Service
```swift
OpenSDKService.getAssets { completion in
switch completion {
case .success(let assets):
self.handle(assets: assets)
case .failure:
break
}
}
```
## API
- [API](https://github.com/fox-one/foxone-ios-opensdk/blob/master/API.md) - The OpenSDKService API
## Give Feedback
mengwl@fox.one