1.3 KiB

#AlamofireSwiftyJSON Build Status Carthage compatible GitHub release SwiftLint


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

Carthage

github "starboychina/AlamofireSwiftyJSON"

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