ChangellyAPI
- 支持 API 的所有端点
- 通过 Codable 透明解码响应对象
- 基于 Swift 5 Result 枚举
- 处理 Changelly 请求签名
示例
import Changelly
let client = Changelly.API(key: "{YOUR_API_KEY}", secret: "{YOUR_API_SECRET}")
client.getCurrencies().perform { result in
do {
let currencies = try? result.get()
// use successfull response
} catch {
// handle request error
}
}
安装
ChangellyAPI 可通过 CocoaPods 获取。要安装它,只需将以下行添加到您的 Podfile 中
pod 'ChangellyAPI'
许可
ChangellyAPI 按照MIT许可。有关更多信息,请参阅 LICENSE 文件。