ESPN

Simply Ruby Wrapper for the ESPN Developer API.

Build Status Gem Version

Installation

gem install espn

Examples

First, setup your client:

client = ESPN::Client.new(api_key: 'your_api_key_here')

Next, make calls against the ESPN API.

Sports

sport = client.sports(sport: 'baseball', league: 'mlb').sports.first
puts sport.leagues.first.groups.first.name
# => American League

Headlines

headline = client.headlines(sport: 'baseball', league: 'mlb').headlines.first
puts headline.title
# => Atlanta Braves outfielder Jason Heyward hit in jaw with pitch

Inspiration

A ton of inspiration was taken from Octokit. Thanks to those guys for showing the world how API Wrappers should work.

Copyright (c) 2013 Andrew Thorp. See LICENSE for details.

Attribution

ESPN API