Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Latest commit

 

History

History
39 lines (29 loc) · 1.11 KB

README.md

File metadata and controls

39 lines (29 loc) · 1.11 KB

CoinSwitchAPI

Version License Platform Swift 5.0

  • Supports all endpoints from Dynamic API
  • Returns response objects transparently decoded via Codable
  • Based on Swift 5 Result enum

Example

import CoinSwitch

let client = CoinSwitch.API(key: "{YOUR_API_KEY}", ip: "{YOUR_API_SECRET}")
client.getCoins().perform  { result in
do {
let coins = try? result.get()
// use successfull response
} catch {
// handle request error
}
}

Installation

CoinSwitchAPI is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'CoinSwitchAPI'

License

CoinSwitchAPI is available under the MIT license. See the LICENSE file for more info.