Giter Club home page Giter Club logo

sportradar-api's Introduction

Gem Version Build Status Code Climate Coverage Status

Sportradar API

The SportRadar API extensively covers league & sports data. This gem wraps it up, marshals the data into Ruby Objects we know and love.

Currently (July 2016) the SportRadar API has 23 documented APIs.

Our goal is to incrementally integrate with them. Contributions are welcome

SportRadar APIs

Current API Versions

๐Ÿ™‹ = Basic API wrapped/object mapping in progress โœ… = API implemented and wrapped in proper objects

API Version Docs Implemented? Priority
NFL 1 ๐Ÿ“š โœ… ๐Ÿ‘
MLB 5 ๐Ÿ“š - -
NHL 3 ๐Ÿ“š - -
NBA 3 ๐Ÿ“š โœ… -
NCAAMB 3 ๐Ÿ“š - -
NCAAFB 1 ๐Ÿ“š - -
Golf 2 ๐Ÿ“š - -
NASCAR 3 ๐Ÿ“š - -
Odds 1 ๐Ÿ“š ๐Ÿ™‹ ๐Ÿ‘
Content 3 ๐Ÿ“š โœ… ๐Ÿ‘
Images 2 ๐Ÿ“š โœ… ๐Ÿ‘
Live Images 1 ๐Ÿ“š โœ… ๐Ÿ‘
Olympics 2 ๐Ÿ“š - -
Soccer 2 ๐Ÿ“š โœ…๏ธ ๐Ÿ‘
NCAAWB 3 ๐Ÿ“š - -
MMA 1 ๐Ÿ“š - -
Cricket 1 ๐Ÿ“š - -
WNBA 3 ๐Ÿ“š - -
NCAAMH 3 ๐Ÿ“š - -
NPB 1 ๐Ÿ“š - -
Rugby 1 ๐Ÿ“š - -
Tennis 1 ๐Ÿ“š - -
ESPORTS 1 ๐Ÿ“š - -
Simulation APIs 1 ๐Ÿ“š โœ… ๐Ÿ‘

Installation

Add this line to your application's Gemfile:

gem 'sportradar-api'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sportradar-api

Usage

TODO: Add some usage instructions.

Configuration

Manage your ruby environment through .ruby-version and .ruby-gemset files.

Create .env for environment variables. Follow the .env.sample for guidance.

Simulation Games

http://developer.sportradar.us/page/Live_Game_Simulation

Soccer

sim = Sportradar::Api::Soccer.new('na', 't', true)
summary = sim.match_summary(sim.simulation_match)
boxscore = sim.match_boxscore(sim.simulation_match)

NFL

It's possible to find the current simulation game:

Sportradar::Api::Nfl.new('o').active_simulation
=>
https://api.sportradar.us/nfl-sim1/games/f45b4a31-b009-4039-8394-42efbc6d5532/boxscore.xml
Live Game: Green Bay Packers vs Minnesota Vikings. Q2 00:08.  game_id='f45b4a31-b009-4039-8394-42efbc6d5532'

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/beneggett/sportradar-api.

sportradar-api's People

Contributors

beneggett avatar codystringham avatar phoffer avatar timbinous avatar trevorrjohn avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.