Skip to content

Commit

Permalink
Updated Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanhimmelman committed May 4, 2015
1 parent 8aeb8c0 commit 31771ea
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ Given a URL which returns weather data in the following form:
You can use this extension as the follows:
```swift
let URL = "https://raw.githubusercontent.com/tristanhimmelman/AlamofireObjectMapper/d8bb95982be8a11a2308e779bb9a9707ebe42ede/sample_json"
Alamofire.request(.GET, URL, parameters: nil).responseObject { (response: WeatherResponse?, error: NSError?) in
println(response?.location)
if let threeDayForecast = response?.threeDayForecast {
for forecast in threeDayForecast {
println(forecast.day)
println(forecast.temperature)
}
}
Alamofire.request(.GET, URL, parameters: nil)
.responseObject { (response: WeatherResponse?, error: NSError?) in
println(response?.location)
if let threeDayForecast = response?.threeDayForecast {
for forecast in threeDayForecast {
println(forecast.day)
println(forecast.temperature)
}
}
}
```

Expand Down

0 comments on commit 31771ea

Please sign in to comment.