Skip to content

Instantly share code, notes, and snippets.

@erdemolkun
Created May 6, 2016 11:16
Show Gist options
  • Save erdemolkun/ea23c17da969735bca4f6d7930f38545 to your computer and use it in GitHub Desktop.
Save erdemolkun/ea23c17da969735bca4f6d7930f38545 to your computer and use it in GitHub Desktop.
require 'httparty'
require 'rubygems'
require 'json'
def bloom
begin
response = HTTParty.get 'http://www.bloomberght.com/dynamics/updateDynamicData'
jsonResult = JSON.parse(response)
#puts response
#p jsonResult
p jsonResult['Piyasa']['USDTRY Curncy']['son_fiyat']
rescue Exception => e
puts "Error Occured!!!"
end
end
bloom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment