Skip to content

Instantly share code, notes, and snippets.

@otukutun
Created February 7, 2014 03:53
Show Gist options
  • Save otukutun/8857152 to your computer and use it in GitHub Desktop.
Save otukutun/8857152 to your computer and use it in GitHub Desktop.
livedoor_forecast_api
#!/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