JayKrauss / BeatTheOdds

0 stars 2 forks source link

MVP Base features of Beat the Odds. #9

Open roigme opened 6 years ago

roigme commented 6 years ago

As a user i want a game that condenses an nfl game and shows me change in score and allows me to predict the outcome of the game. **Acceptance Criteria

As a user i want to see the probability of one team winning over the other as the condensed game is being "played" and have the ability to place a bet. **Acceptance Criteria

As a user i want to know the outcome of my bet, and be told which game i watched and how well i did.

salinasleo commented 6 years ago

ok I emailed the sportradar API folk and they said they are B2B only not B2C and so we would have to get their data through a server proxy like Andrew was suggesting. I have since found another API we can use and have succesfully tested it under my account, here is an example of code that works in the console. $.ajax ({ type: "GET", url: "https://api.mysportsfeeds.com/v1.2/pull/nfl/2016-2017-regular/game_playbyplay.json?gameid=20161224-NYJ-NE", dataType: 'json', async: false, headers: { "Authorization": "Basic " + btoa("leosal" + ":" + "TatersMYS1") }, success: function (response){ alert('Thanks for your comment!'); console.log(response); } });