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 文件。