A quick little Ruby wrapper for their recent API
Might not work, I haven't tested it that thoroughly yet (still very much being worked on).
You should just be able to do
gem 'lolapi'
This is my first gem however, so I may have mucked something up somewhere. Just let me know!
require 'lolapi'
LoLAPI.configure do |config|
config.api_key = 'KEY_HERE'
end
puts 'Champions:'
puts LoLAPI::champion('na')
puts 'Summoner:'
summoner = LoLAPI::summoner('Syniad', 'na')
puts summoner
puts 'Game:'
puts LoLAPI::game(summoner['id'], 'na')
puts 'League:'
puts LoLAPI::league(summoner['id'], 'na')
puts 'Summary:'
summary = LoLAPI.summary(summoner['id'], 'na')
puts summary
Syniad being my friend, not me. The API doesn't seem to play that well with spaces yet (My name is Sir Desch).