Alamofire-SwiftyJSON 3.0.0

Alamofire-SwiftyJSON 3.0.0

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
 

  • By
  • tangplin

AlamofireSwiftyJSON


Easy way to use both Alamofire and SwiftyJSON

Requirements

  • iOS 8.0+ / Mac OS X 10.9+
  • Xcode 7.0

Install

  • CocoaPods
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

target "target name" do
  pod 'AlamofireSwiftyJSON'
end

  • Carthage

Usage

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)")
}