Created
February 7, 2014 03:53
-
-
Save otukutun/8857152 to your computer and use it in GitHub Desktop.
livedoor_forecast_api
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rest_client' | |
require 'json' | |
forecast_json = RestClient.get 'http://weather.livedoor.com/forecast/webservice/json/v1?city=030010' | |
forecast = JSON.parse(forecast_json) | |
#puts forecast["forecasts"][0]["telop"] | |
puts forecast["forecasts"][0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment