Skip to content

Instantly share code, notes, and snippets.

@luckyruby
Last active December 29, 2015 23:59
Show Gist options
  • Select an option

  • Save luckyruby/7746172 to your computer and use it in GitHub Desktop.

Select an option

Save luckyruby/7746172 to your computer and use it in GitHub Desktop.
require 'json'
require 'pp'
require 'open-uri'
class SteamApi
def self.match_history(match_id)
JSON.parse(open("https://api.steampowered.com/IDOTA2Match_#{match_id}/GetMatchHistory/V001/?matches_requested=1&key=D53A0505A0582BF91829407EE0ED54E2").read)
end
end
pp SteamApi.match_history(570)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment