TestsTested | ✓ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Nov 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Xinguang, Zigii Wong.
Depends on: | |
Alamofire | ~> 4.5 |
SwiftyJSON | ~> 4.0.0 |
Easy way to use both Alamofire and SwiftyJSON
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target "target name" do
pod 'AlamofireSwiftyJSON'
end
let URL = "http://httpbin.org/get"
Alamofire.request(.GET, URL, parameters: ["foo": "bar"]).responseSwiftyJSON { response in
print("###Success: \(response.result.isSuccess)")
//now response.result.value is SwiftyJSON.JSON type
print("###Value: \(response.result.value?["args"].array)")
}