Skip to content

Commit c1d00d5

Browse files
committed
Update README.md
1 parent 17b2044 commit c1d00d5

1 file changed

Lines changed: 10 additions & 14 deletions

File tree

README.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,26 @@
1-
#Alamofire-SwiftyJSON
1+
#Alamofire-SwiftyJSON ![](https://travis-ci.org/SwiftyJSON/Alamofire-SwiftyJSON.svg?branch=master)
22

3-
Easy way to use both [Alamofire](https://github.com/Alamofire/Alamofire) and [SwiftyJSON](https://github.com/SwiftyJSON/SwiftyJSON)
3+
An extension to make serializing [Alamofire](https://github.com/Alamofire/Alamofire)'s response with [SwiftyJSON](https://github.com/SwiftyJSON/SwiftyJSON) easily.
44

55
## Requirements
66

77
- iOS 8.0+ / Mac OS X 10.9+
8-
- Xcode 7.0
8+
- Xcode 8.0
99

1010
## Install
1111

12-
```
13-
source 'https://github.com/CocoaPods/Specs.git'
14-
platform :ios, '8.0'
15-
use_frameworks!
16-
12+
```ruby
1713
pod 'Alamofire-SwiftyJSON'
18-
1914
```
2015

2116
## Usage
2217

2318
```swift
24-
Alamofire.request(.GET, "http://httpbin.org/get", parameters: ["foo": "bar"])
25-
.responseSwiftyJSON({ (request, response, json, error) in
26-
println(json)
27-
println(error)
19+
Alamofire.request(URL, method: .get, parameters: parameters, encoding: URLEncoding.default)
20+
.responseSwiftyJSON { dataResponse in
21+
print(dataResponse.request)
22+
print(dataResponse.response)
23+
print(dataResponse.error)
24+
print(dataResponse.value)
2825
})
29-
3026
```

0 commit comments

Comments
 (0)