Skip to content

Use Ruby to make requests to the ESPN Fantasy API to pull data about your league!

Notifications You must be signed in to change notification settings

usborn116/ruby_espn_fantasy_library

Repository files navigation

This is code for a gem I created that allows you to interface with the ESPN NBA Fantasy API in Ruby or Rails apps! You can access League, Team, and Player data with this gem.

The gem is live! Info can be found here: https://rubygems.org/gems/espn_nba_fantasy

Links that helped me in this project:

Converting HTTP to JSON: https://stackoverflow.com/questions/31362732/convert-http-response-to-json-in-ruby

Using rest-client: https://rahman-saima.medium.com/integrating-external-api-ruby-on-rails-76a05ef8b0e8

Making a gem: https://guides.rubygems.org/make-your-own-gem/

Gemspec file specification options: https://guides.rubygems.org/specification-reference/#homepage

Documenting with YARD: https://rubydoc.info/gems/yard/file/docs/GettingStarted.md

Setting up testing in a gem: https://stackoverflow.com/questions/4398262/set-up-rspec-to-test-a-gem-not-rails

Python API Library that inspired this project: https://github.com/cwendt94/espn-api/blob/master/espn_api/basketball/league.py

About

Use Ruby to make requests to the ESPN Fantasy API to pull data about your league!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages