From 9e69b85d05950c5a85e7a3db19714a9c98c71771 Mon Sep 17 00:00:00 2001 From: sarafiskray Date: Fri, 20 Sep 2024 11:53:57 -0400 Subject: [PATCH] update node package to 1.8.0 - new basic endpoints and nfl pbp fix --- CBB/CBBv3Odds.js | 210 +++++++++++++++++++++--- CBB/CBBv3Scores.js | 80 ++++++---- CBB/CBBv3Stats.js | 100 ++++++++---- CFB/CFBv3Odds.js | 214 ++++++++++++++++++++++--- CFB/CFBv3Scores.js | 116 +++++++++----- CFB/CFBv3Stats.js | 132 ++++++++++----- CWBB/CWBBv3Scores.js | 36 ++++- Golf/Golfv2.js | 139 +++++++++++++--- Golf/Golfv3Odds.js | 152 ++++++++++++++++-- Golf/Golfv3RotoBallerPremiumNews.js | 4 +- Golf/Golfv3RotoworldPlayerNews.js | 6 +- MLB/MLBv3Odds.js | 210 +++++++++++++++++++++--- MLB/MLBv3PlayByPlay.js | 14 +- MLB/MLBv3Projections.js | 20 +-- MLB/MLBv3RotoBallerArticles.js | 4 +- MLB/MLBv3RotoBallerPremiumNews.js | 4 +- MLB/MLBv3RotoworldPlayerNews.js | 6 +- MLB/MLBv3Scores.js | 116 ++++++++++---- MLB/MLBv3Stats.js | 120 ++++++++++---- MMA/MMAv3Odds.js | 18 +-- MMA/MMAv3Scores.js | 19 ++- MMA/MMAv3Stats.js | 42 ++++- NBA/NBAv2.js | 58 +++---- NBA/NBAv3Odds.js | 214 ++++++++++++++++++++++--- NBA/NBAv3PlayByPlay.js | 14 +- NBA/NBAv3Projections.js | 16 +- NBA/NBAv3RotoBallerArticles.js | 4 +- NBA/NBAv3RotoBallerPremiumNews.js | 4 +- NBA/NBAv3RotoworldPlayerNews.js | 6 +- NBA/NBAv3Scores.js | 100 ++++++++---- NBA/NBAv3Stats.js | 122 +++++++++----- NFLv3/NFLv3Odds.js | 210 +++++++++++++++++++++--- NFLv3/NFLv3PlayByPlay.js | 32 +++- NFLv3/NFLv3Projections.js | 48 +++--- NFLv3/NFLv3RotoBallerArticles.js | 4 +- NFLv3/NFLv3RotoBallerPremiumNews.js | 6 +- NFLv3/NFLv3RotoworldPlayerNews.js | 6 +- NFLv3/NFLv3Scores.js | 136 ++++++++++------ NFLv3/NFLv3Stats.js | 240 ++++++++++++++++++++-------- NHL/NHLv3Odds.js | 218 ++++++++++++++++++++++--- NHL/NHLv3PlayByPlay.js | 14 +- NHL/NHLv3Projections.js | 12 +- NHL/NHLv3RotoBallerPremiumNews.js | 4 +- NHL/NHLv3Scores.js | 100 ++++++++---- NHL/NHLv3Stats.js | 118 ++++++++++---- Nascar/NASCARv2.js | 91 +++++++++-- Nascar/NASCARv3Odds.js | 16 +- Soccer/Soccerv3Odds.js | 54 ++++--- Soccer/Soccerv3Projections.js | 6 +- Soccer/Soccerv3Stats.js | 26 +++ Soccer/Soccerv4Odds.js | 204 +++++++++++++++++++++-- Soccer/Soccerv4Projections.js | 14 +- Soccer/Soccerv4Scores.js | 80 ++++++---- Soccer/Soccerv4Stats.js | 136 ++++++++++++---- Tennis/Tennisv3Odds.js | 10 +- Tennis/Tennisv3Scores.js | 48 +++--- WNBA/WNBAv3Scores.js | 42 +++-- package.json | 2 +- 58 files changed, 3241 insertions(+), 936 deletions(-) diff --git a/CBB/CBBv3Odds.js b/CBB/CBBv3Odds.js index cafa65c..433ae18 100644 --- a/CBB/CBBv3Odds.js +++ b/CBB/CBBv3Odds.js @@ -8,7 +8,7 @@ class CBBv3OddsClient extends BaseClient { } /// - /// Get In-Game Odds by Date + /// Get In-Game Odds - by Date /// /// The date of the game(s). Examples: 2018-11-20, 2018-11-23. getInGameOddsByDatePromise(date){ @@ -28,7 +28,7 @@ class CBBv3OddsClient extends BaseClient { } /// - /// Get Pre-Game Odds by Date + /// Get Pre-Game Odds - by Date /// /// The date of the game(s). Examples: 2018-11-20, 2018-11-23. getPreGameOddsByDatePromise(date){ @@ -48,7 +48,7 @@ class CBBv3OddsClient extends BaseClient { } /// - /// Get Alternate Market Pre-Game Odds by Date + /// Get Alternate Market Pre-Game Odds - by Date /// /// The date of the game(s). Examples: 2018-11-20, 2018-11-23. getAlternateMarketPreGameOddsByDatePromise(date){ @@ -68,7 +68,7 @@ class CBBv3OddsClient extends BaseClient { } /// - /// Get Betting Trends By Matchup + /// Get Betting Trends - by Matchup /// /// The abbreviation of the requested team. Examples: OU, UK. /// The abbreviation of the requested opponent. Examples: OU, UK. @@ -80,7 +80,7 @@ class CBBv3OddsClient extends BaseClient { } /// - /// Get Betting Trends By Team + /// Get Betting Trends - by Team /// /// The abbreviation of the requested team. Examples: OU, UK. getBettingTrendsByTeamPromise(team){ @@ -90,7 +90,7 @@ class CBBv3OddsClient extends BaseClient { } /// - /// Get Betting Events by Date + /// Get Betting Events - by Date /// /// The date of the game(s). Examples: 2018-11-20, 2018-11-23. getBettingEventsByDatePromise(date){ @@ -100,7 +100,7 @@ class CBBv3OddsClient extends BaseClient { } /// - /// Get Betting Events by Season + /// Get Betting Events - by Season /// /// Year of the season Examples: 2020, 2021, etc. getBettingEventsBySeasonPromise(season){ @@ -110,7 +110,7 @@ class CBBv3OddsClient extends BaseClient { } /// - /// Get Betting Futures by Season + /// Get Betting Futures - by Season /// /// Year of the season Examples: 2020, 2021, etc. getBettingFuturesBySeasonPromise(season){ @@ -130,7 +130,7 @@ class CBBv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by Event + /// Get Betting Markets - by Event /// /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. @@ -142,11 +142,11 @@ class CBBv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by GameID + /// Get Betting Markets - by Game /// /// The GameID of the desired game for which to pull all betting markets (includes outcomes/bets). /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. - getBettingMarketsByGameIDPromise(gameid, include){ + getBettingMarketsByGamePromise(gameid, include){ var parameters = {}; parameters['gameid']=gameid; parameters['include']=include; @@ -154,7 +154,7 @@ class CBBv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by Market Type + /// Get Betting Markets - by Market Type /// /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). /// The Market Type ID of the desired MarketTypes to pull. Some common types include: 1 for Game Lines, 2 for Player Props, 3 for Team Props, 6 for Game Props @@ -175,38 +175,38 @@ class CBBv3OddsClient extends BaseClient { } /// - /// Get Sportsbooks (Active) + /// Get Sportsbooks - by Active /// - getSportsbooksActivePromise(){ + getSportsbooksByActivePromise(){ return this.GetPromise('/v3/cbb/odds/{format}/ActiveSportsbooks'); } /// - /// Get Betting Splits By BettingMarketId + /// Get Betting Splits - by Betting Market /// /// The MarketId of the desired market for which to pull splits. MarketIds are pulled from the Betting Markets endpoints. - getBettingSplitsByBettingMarketIdPromise(marketId){ + getBettingSplitsByBettingMarketPromise(marketId){ var parameters = {}; parameters['marketId']=marketId; return this.GetPromise('/v3/cbb/odds/{format}/BettingSplitsByMarketId/{marketId}', parameters); } /// - /// Get Betting Splits By GameID + /// Get Betting Splits - by Game /// /// The ID of the game for which you want to receive splits for. GameIds are pulled from the Schedules and Games by Date endpoints. - getBettingSplitsByGameIDPromise(gameId){ + getBettingSplitsByGamePromise(gameId){ var parameters = {}; parameters['gameId']=gameId; return this.GetPromise('/v3/cbb/odds/{format}/BettingSplitsByGameId/{gameId}', parameters); } /// - /// Get Betting Player Props by GameID + /// Get Betting Player Props - by Game /// /// The unique GameID of the game in question. /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. - getBettingPlayerPropsByGameIDPromise(gameId, include){ + getBettingPlayerPropsByGamePromise(gameId, include){ var parameters = {}; parameters['gameId']=gameId; parameters['include']=include; @@ -214,15 +214,181 @@ class CBBv3OddsClient extends BaseClient { } /// - /// Get Betting Resulting By Market + /// Get Betting Results - by Market /// /// BettingMarketID of the market for which you would like to see resulted outcomes. Valid example ID 96401, 93518 - getBettingResultingByMarketPromise(marketId){ + getBettingResultsByMarketPromise(marketId){ var parameters = {}; parameters['marketId']=marketId; return this.GetPromise('/v3/cbb/odds/{format}/BettingMarketResults/{marketId}', parameters); } + /// + /// Get Betting Futures - by Season [Sportsbook Group] + /// + /// Year of the season Examples: 2020, 2021, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingFuturesBySeasonSportsbookGroupPromise(season, sportsbookgroup){ + var parameters = {}; + parameters['season']=season; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/cbb/odds/{format}/BettingFuturesBySeason/{season}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Market [Sportsbook Group] + /// + /// The MarketId of the desired market for which to pull all outcomes/bets. + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingMarketSportsbookGroupPromise(marketId, sportsbookgroup){ + var parameters = {}; + parameters['marketId']=marketId; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/cbb/odds/{format}/BettingMarket/{marketId}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Event [Sportsbook Group] + /// + /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingMarketsByEventSportsbookGroupPromise(eventId, sportsbookgroup, include){ + var parameters = {}; + parameters['eventId']=eventId; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/cbb/odds/{format}/BettingMarketsByEvent/{eventId}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Game [Sportsbook Group] + /// + /// The GameID of the desired game for which to pull all betting markets (includes outcomes/bets). + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingMarketsByGameSportsbookGroupPromise(gameid, sportsbookgroup, include){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/cbb/odds/{format}/BettingMarketsByGameID/{gameid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Market Type [Sportsbook Group] + /// + /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). + /// The Market Type ID of the desired MarketTypes to pull. Some common types include: 1 for Game Lines, 2 for Player Props, 3 for Team Props, 6 for Game Props + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingMarketsByMarketTypeSportsbookGroupPromise(eventId, marketTypeID, sportsbookgroup, include){ + var parameters = {}; + parameters['eventId']=eventId; + parameters['marketTypeID']=marketTypeID; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/cbb/odds/{format}/BettingMarketsByMarketType/{eventId}/{marketTypeID}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Player Props - by Game [Sportsbook Group] + /// + /// The unique GameID of the game in question. + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingPlayerPropsByGameSportsbookGroupPromise(gameId, sportsbookgroup, include){ + var parameters = {}; + parameters['gameId']=gameId; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/cbb/odds/{format}/BettingPlayerPropsByGameID/{gameId}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Results - by Market [Sportsbook Group] + /// + /// BettingMarketID of the market for which you would like to see resulted outcomes. Valid example ID 96401, 93518 + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingResultsByMarketSportsbookGroupPromise(marketId, sportsbookgroup){ + var parameters = {}; + parameters['marketId']=marketId; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/cbb/odds/{format}/BettingResultsByMarket/{marketId}/{sportsbookgroup}', parameters); + } + + /// + /// Get In-Game Odds - by Date [Sportsbook Group] + /// + /// The date of the game(s). Examples: 2018-11-20, 2018-11-23. + /// The name of the Sportsbook grouping. Examples: G1100 + getInGameOddsByDateSportsbookGroupPromise(date, sportsbookgroup){ + var parameters = {}; + parameters['date']=date; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/cbb/odds/{format}/InGameOddsByDate/{date}/{sportsbookgroup}', parameters); + } + + /// + /// Get In-Game Odds Line Movement [Sportsbook Group] + /// + /// The GameID of an CBB game. GameIDs can be found in the Games API. Valid entries are 17775 or 17776 + /// The name of the Sportsbook grouping. Examples: G1100 + getInGameOddsLineMovementSportsbookGroupPromise(gameid, sportsbookgroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/cbb/odds/{format}/InGameLineMovement/{gameid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds - by Date [Sportsbook Group] + /// + /// The date of the game(s). Examples: 2018-11-20, 2018-11-23. + /// The name of the Sportsbook grouping. Examples: G1100 + getPreGameAndPeriodGameOddsByDateSportsbookGroupPromise(date, sportsbookgroup){ + var parameters = {}; + parameters['date']=date; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/cbb/odds/{format}/PreGameOddsByDate/{date}/{sportsbookgroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds Line Movement [Sportsbook Group] + /// + /// The GameID of an CBB game. GameIDs can be found in the Games API. Valid entries are 17775 or 17776 + /// The name of the Sportsbook grouping. Examples: G1100 + getPreGameAndPeriodGameOddsLineMovementSportsbookGroupPromise(gameid, sportsbookgroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/cbb/odds/{format}/PreGameOddsLineMovement/{gameid}/{sportsbookgroup}', parameters); + } + + /// + /// Get In-Game Odds Line Movement with Resulting [Sportsbook Group] + /// + /// The GameID of an CBB game. GameIDs can be found in the Games API. Valid entries are 17775 or 17776 + /// The name of the Sportsbook grouping. Examples: G1100 + getInGameOddsLineMovementWithResultingSportsbookGroupPromise(gameid, sportsbookgroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/cbb/odds/{format}/InGameLineMovementWithResulting/{gameid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds Line Movement with Resulting [Sportsbook Group] + /// + /// The GameID of an CBB game. GameIDs can be found in the Games API. Valid entries are 17775 or 17776 + /// The name of the Sportsbook grouping. Examples: G1100 + getPreGameAndPeriodGameOddsLineMovementWithResultingSportsbookGroupPromise(gameid, sportsbookgroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/cbb/odds/{format}/PreGameOddsLineMovementWithResulting/{gameid}/{sportsbookgroup}', parameters); + } + } module.exports = CBBv3OddsClient; diff --git a/CBB/CBBv3Scores.js b/CBB/CBBv3Scores.js index 6d96f55..842c082 100644 --- a/CBB/CBBv3Scores.js +++ b/CBB/CBBv3Scores.js @@ -15,17 +15,17 @@ class CBBv3ScoresClient extends BaseClient { } /// - /// Get Current Season + /// Get Season - Current /// - getCurrentSeasonPromise(){ + getSeasonCurrentPromise(){ return this.GetPromise('/v3/cbb/scores/{format}/CurrentSeason'); } /// - /// Get Games by Date - Legacy + /// Get Games - by Date [Live & Final] /// /// The date of the game(s). Examples: 2018-FEB-27, 2017-DEC-01. - getGamesByDateLegacyPromise(date){ + getGamesByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/cbb/scores/{format}/GamesByDate/{date}', parameters); @@ -39,14 +39,14 @@ class CBBv3ScoresClient extends BaseClient { } /// - /// Get Player Details by Active + /// Get Player Details - by Active /// getPlayerDetailsByActivePromise(){ return this.GetPromise('/v3/cbb/scores/{format}/Players'); } /// - /// Get Player Details by Player + /// Get Player Details - by Player /// /// Unique FantasyData Player ID. Example:60003802. getPlayerDetailsByPlayerPromise(playerid){ @@ -56,7 +56,7 @@ class CBBv3ScoresClient extends BaseClient { } /// - /// Get Player Details by Team + /// Get Player Details - by Team /// /// The abbreviation of the requested team. Examples: SF, NYY. getPlayerDetailsByTeamPromise(team){ @@ -66,20 +66,20 @@ class CBBv3ScoresClient extends BaseClient { } /// - /// Get Schedules - Legacy + /// Get Games - by Season /// /// Year of the season (with optional season type). Examples: 2018, 2018PRE, 2018POST, 2018STAR, 2019, etc. - getSchedulesLegacyPromise(season){ + getGamesBySeasonPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/cbb/scores/{format}/Games/{season}', parameters); } /// - /// Get Team Game Stats by Date + /// Get Team Game Stats - by Date [Live & Final] /// /// The date of the game(s). Examples: 2018-FEB-27, 2017-DEC-01. - getTeamGameStatsByDatePromise(date){ + getTeamGameStatsByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/cbb/scores/{format}/TeamGameStatsByDate/{date}', parameters); @@ -96,17 +96,17 @@ class CBBv3ScoresClient extends BaseClient { } /// - /// Get Teams - Legacy + /// Get Team Profiles - All /// - getTeamsLegacyPromise(){ + getTeamProfilesAllPromise(){ return this.GetPromise('/v3/cbb/scores/{format}/teams'); } /// - /// Get Tournament Hierarchy + /// Get Games - by Season [Live & Final] /// /// Year of the season (with optional season type). Examples: 2018, 2018POST, 2019. - getTournamentHierarchyPromise(season){ + getGamesBySeasonLiveFinalPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/cbb/scores/{format}/Tournament/{season}', parameters); @@ -120,11 +120,11 @@ class CBBv3ScoresClient extends BaseClient { } /// - /// Get Team Schedule - Legacy + /// Get Schedules - by Team /// /// Year of the season (with optional season type). Examples: 2018, 2018PRE, 2018POST, 2018STAR, 2019, etc. /// The abbreviation of the requested team. Examples: SF, NYY. - getTeamScheduleLegacyPromise(season, team){ + getSchedulesByTeamPromise(season, team){ var parameters = {}; parameters['season']=season; parameters['team']=team; @@ -132,9 +132,9 @@ class CBBv3ScoresClient extends BaseClient { } /// - /// Get Injured Players + /// Get Player Details - by Injured /// - getInjuredPlayersPromise(){ + getPlayerDetailsByInjuredPromise(){ return this.GetPromise('/v3/cbb/scores/{format}/InjuredPlayers'); } @@ -153,49 +153,69 @@ class CBBv3ScoresClient extends BaseClient { } /// - /// Get Scores by Date + /// Get Games (Basic) - by Date /// /// The date of the game(s). Examples: 2018-FEB-27, 2017-DEC-01. - getScoresByDatePromise(date){ + getGamesBasicByDatePromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/cbb/scores/{format}/ScoresBasic/{date}', parameters); } /// - /// Get Players by Team + /// Get Player Profiles - by Team /// - /// The abbreviation of the requested team. Examples: SF, NYY. - getPlayersByTeamPromise(team){ + /// The abbreviation of the requested team. Examples: SMU, UCLA. + getPlayerProfilesByTeamPromise(team){ var parameters = {}; parameters['team']=team; return this.GetPromise('/v3/cbb/scores/{format}/PlayersBasic/{team}', parameters); } /// - /// Get Schedules + /// Get Schedules (Basic) /// /// Year of the season (with optional season type). Examples: 2018, 2018PRE, 2018POST, 2018STAR, 2019, etc. - getSchedulesPromise(season){ + getSchedulesBasicPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/cbb/scores/{format}/SchedulesBasic/{season}', parameters); } /// - /// Get Teams + /// Get Teams (Basic) - All /// - getTeamsPromise(){ + getTeamsBasicAllPromise(){ return this.GetPromise('/v3/cbb/scores/{format}/TeamsBasic'); } /// - /// Get Players by Active + /// Get Player Details - by Active /// - getPlayersByActivePromise(){ + getPlayerDetailsByActive_1457Promise(){ return this.GetPromise('/v3/cbb/scores/{format}/PlayersByActive'); } + /// + /// Get Games - by Date [Final] + /// + /// The date of the game(s). Examples: 2018-FEB-27, 2017-DEC-01. + getGamesByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/cbb/scores/{format}/GamesByDateFinal/{date}', parameters); + } + + /// + /// Get Games - by Season [Final] + /// + /// Year of the season (with optional season type). Examples: 2018, 2018PRE, 2018POST, 2018STAR, 2019, etc. + getGamesBySeasonFinalPromise(season){ + var parameters = {}; + parameters['season']=season; + return this.GetPromise('/v3/cbb/scores/{format}/GamesFinal/{season}', parameters); + } + } module.exports = CBBv3ScoresClient; diff --git a/CBB/CBBv3Stats.js b/CBB/CBBv3Stats.js index 0a27b23..0288692 100644 --- a/CBB/CBBv3Stats.js +++ b/CBB/CBBv3Stats.js @@ -15,31 +15,31 @@ class CBBv3StatsClient extends BaseClient { } /// - /// Get Box Score + /// Get Box Score [Live & Final] /// /// The GameID of an CBB game. GameIDs can be found in the Games API. Valid entries are 14620 or 16905 - getBoxScorePromise(gameid){ + getBoxScoreLiveFinalPromise(gameid){ var parameters = {}; parameters['gameid']=gameid; return this.GetPromise('/v3/cbb/stats/{format}/BoxScore/{gameid}', parameters); } /// - /// Get Box Scores by Date + /// Get Box Scores - by Date [Live & Final] /// /// The date of the game(s). Examples: 2018-FEB-27, 2017-DEC-01. - getBoxScoresByDatePromise(date){ + getBoxScoresByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/cbb/stats/{format}/BoxScores/{date}', parameters); } /// - /// Get Box Scores by Date Delta + /// Get Box Scores Delta - by Date /// /// The date of the game(s). Examples: 2018-FEB-27, 2017-DEC-01. /// Only returns player statistics that have changed in the last X minutes. You specify how many minutes in time to go back. Valid entries are: 1 or 2. - getBoxScoresByDateDeltaPromise(date, minutes){ + getBoxScoresDeltaByDatePromise(date, minutes){ var parameters = {}; parameters['date']=date; parameters['minutes']=minutes; @@ -47,17 +47,17 @@ class CBBv3StatsClient extends BaseClient { } /// - /// Get Current Season + /// Get Season Current /// - getCurrentSeasonPromise(){ + getSeasonCurrentPromise(){ return this.GetPromise('/v3/cbb/stats/{format}/CurrentSeason'); } /// - /// Get Games by Date + /// Get Games - by Date [Live & Final] /// /// The date of the game(s). Examples: 2018-FEB-27, 2017-DEC-01. - getGamesByDatePromise(date){ + getGamesByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/cbb/stats/{format}/GamesByDate/{date}', parameters); @@ -71,14 +71,14 @@ class CBBv3StatsClient extends BaseClient { } /// - /// Get Player Details by Active + /// Get Player Details - by Active /// getPlayerDetailsByActivePromise(){ return this.GetPromise('/v3/cbb/stats/{format}/Players'); } /// - /// Get Player Details by Player + /// Get Player Details - by Player /// /// Unique FantasyData Player ID. Example:60003802. getPlayerDetailsByPlayerPromise(playerid){ @@ -88,7 +88,7 @@ class CBBv3StatsClient extends BaseClient { } /// - /// Get Player Details by Team + /// Get Player Details - by Team /// /// The abbreviation of the requested team. Examples: SF, NYY. getPlayerDetailsByTeamPromise(team){ @@ -98,17 +98,17 @@ class CBBv3StatsClient extends BaseClient { } /// - /// Get Player Game Stats by Date + /// Get Player Game Stats - by Date [Live & Final] /// /// The date of the game(s). Examples: 2018-FEB-27, 2017-DEC-01. - getPlayerGameStatsByDatePromise(date){ + getPlayerGameStatsByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/cbb/stats/{format}/PlayerGameStatsByDate/{date}', parameters); } /// - /// Get Player Game Stats by Player + /// Get Player Game Stats - by Player /// /// The date of the game(s). Examples: 2018-FEB-27, 2017-DEC-01. /// Unique FantasyData Player ID. Example:60003802. @@ -130,7 +130,7 @@ class CBBv3StatsClient extends BaseClient { } /// - /// Get Player Season Stats By Player + /// Get Player Season Stats - by Player /// /// Year of the season (with optional season type). Examples: 2018, 2018POST, 2019. /// Unique FantasyData Player ID. Example:60003802. @@ -142,7 +142,7 @@ class CBBv3StatsClient extends BaseClient { } /// - /// Get Player Season Stats by Team + /// Get Player Season Stats - by Team /// /// Year of the season (with optional season type). Examples: 2018, 2018POST, 2019. /// The abbreviation of the requested team. Examples: SF, NYY. @@ -154,7 +154,7 @@ class CBBv3StatsClient extends BaseClient { } /// - /// Get Projected Player Game Stats by Date + /// Get Projected Player Game Stats - by Date /// /// The date of the game(s). Examples: 2018-FEB-27, 2017-DEC-01. getProjectedPlayerGameStatsByDatePromise(date){ @@ -164,7 +164,7 @@ class CBBv3StatsClient extends BaseClient { } /// - /// Get Projected Player Game Stats by Player + /// Get Projected Player Game Stats - by Player /// /// The date of the game(s). Examples: 2018-FEB-27, 2017-DEC-01. /// Unique FantasyData Player ID. Example:60003802. @@ -186,10 +186,10 @@ class CBBv3StatsClient extends BaseClient { } /// - /// Get Team Game Stats by Date + /// Get Team Game Stats - by Date [Live & Final] /// /// The date of the game(s). Examples: 2018-FEB-27, 2017-DEC-01. - getTeamGameStatsByDatePromise(date){ + getTeamGameStatsByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/cbb/stats/{format}/TeamGameStatsByDate/{date}', parameters); @@ -206,17 +206,17 @@ class CBBv3StatsClient extends BaseClient { } /// - /// Get Teams + /// Get Team Profiles - All /// - getTeamsPromise(){ + getTeamProfilesAllPromise(){ return this.GetPromise('/v3/cbb/stats/{format}/teams'); } /// - /// Get Tournament Hierarchy + /// Get Games - by Season [Live & Final] /// /// Year of the season (with optional season type). Examples: 2018, 2018POST, 2019. - getTournamentHierarchyPromise(season){ + getGamesBySeasonLiveFinalPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/cbb/stats/{format}/Tournament/{season}', parameters); @@ -230,7 +230,7 @@ class CBBv3StatsClient extends BaseClient { } /// - /// Get Player Game Logs By Season + /// Get Player Game Logs - by Season /// /// Season to get games from. Example 2019POST, 2020 /// Unique FantasyData Player ID.Example:60008094. @@ -244,14 +244,14 @@ class CBBv3StatsClient extends BaseClient { } /// - /// Get Injured Players + /// Get Player Details - by Injured /// - getInjuredPlayersPromise(){ + getPlayerDetailsByInjuredPromise(){ return this.GetPromise('/v3/cbb/stats/{format}/InjuredPlayers'); } /// - /// Get Team Game Logs By Season + /// Get Team Game Logs - by Season /// /// Season to get games from. Example 2019POST, 2020 /// Unique ID of team. Example 1 @@ -264,6 +264,46 @@ class CBBv3StatsClient extends BaseClient { return this.GetPromise('/v3/cbb/stats/{format}/TeamGameStatsBySeason/{season}/{teamid}/{numberofgames}', parameters); } + /// + /// Get Box Score [Final] + /// + /// The GameID of an CBB game. GameIDs can be found in the Games API. Valid entries are 14620 or 16905 + getBoxScoreFinalPromise(gameid){ + var parameters = {}; + parameters['gameid']=gameid; + return this.GetPromise('/v3/cbb/stats/{format}/BoxScoreFinal/{gameid}', parameters); + } + + /// + /// Get Box Scores - by Date [Final] + /// + /// The date of the game(s). Examples: 2018-FEB-27, 2017-DEC-01. + getBoxScoresByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/cbb/stats/{format}/BoxScoresFinal/{date}', parameters); + } + + /// + /// Get Player Game Stats - by Date [Final] + /// + /// The date of the game(s). Examples: 2018-FEB-27, 2017-DEC-01. + getPlayerGameStatsByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/cbb/stats/{format}/PlayerGameStatsByDateFinal/{date}', parameters); + } + + /// + /// Get Team Game Stats - by Date [Final] + /// + /// The date of the game(s). Examples: 2018-FEB-27, 2017-DEC-01. + getTeamGameStatsByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/cbb/stats/{format}/TeamGameStatsByDateFinal/{date}', parameters); + } + } module.exports = CBBv3StatsClient; diff --git a/CFB/CFBv3Odds.js b/CFB/CFBv3Odds.js index 7aca594..93128e6 100644 --- a/CFB/CFBv3Odds.js +++ b/CFB/CFBv3Odds.js @@ -8,7 +8,7 @@ class CFBv3OddsClient extends BaseClient { } /// - /// Get In-Game Odds by Week + /// Get In-Game Odds - by Week /// /// Year of the season, with optional season type. Examples: 2018, 2018POST, etc. /// The week of the game(s). Examples: 1, 2, etc. @@ -30,7 +30,7 @@ class CFBv3OddsClient extends BaseClient { } /// - /// Get Pre-Game Odds by Week + /// Get Pre-Game Odds - by Week /// /// Year of the season, with optional season type. Examples: 2018, 2018POST, etc. /// The week of the game(s). Examples: 1, 2, etc. @@ -52,7 +52,7 @@ class CFBv3OddsClient extends BaseClient { } /// - /// Get Period Game Odds by Week + /// Get Period Game Odds - by Week /// /// Year of the season, with optional season type. Examples: 2018, 2018POST, etc. /// The week of the game(s). Examples: 1, 2, etc. @@ -74,7 +74,7 @@ class CFBv3OddsClient extends BaseClient { } /// - /// Get Betting Trends by Matchup + /// Get Betting Trends - by Matchup /// /// The abbreviation of the requested team. Examples: MIA, ND, PITT, etc. /// The abbreviation of the requested opponent. Examples: MIA, ND, PITT, etc. @@ -86,7 +86,7 @@ class CFBv3OddsClient extends BaseClient { } /// - /// Get Betting Trends by Team + /// Get Betting Trends - by Team /// /// The abbreviation of the requested team. Examples: MIA, ND, PITT, etc. getBettingTrendsByTeamPromise(team){ @@ -96,7 +96,7 @@ class CFBv3OddsClient extends BaseClient { } /// - /// Get Betting Events by Date + /// Get Betting Events - by Date /// /// The date of the game(s). Examples: 2020-10-17 getBettingEventsByDatePromise(date){ @@ -106,7 +106,7 @@ class CFBv3OddsClient extends BaseClient { } /// - /// Get Betting Events by Season + /// Get Betting Events - by Season /// /// Year of the season Examples: 2021, 2022, etc. getBettingEventsBySeasonPromise(season){ @@ -116,7 +116,7 @@ class CFBv3OddsClient extends BaseClient { } /// - /// Get Betting Futures by Season + /// Get Betting Futures - by Season /// /// Year of the season Examples: 2020, 2021, etc. getBettingFuturesBySeasonPromise(season){ @@ -136,7 +136,7 @@ class CFBv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by Event + /// Get Betting Markets - by Event /// /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. @@ -148,11 +148,11 @@ class CFBv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by GameID + /// Get Betting Markets - by Game /// /// The GameID of the desired game for which to pull all betting markets (includes outcomes/bets). /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. - getBettingMarketsByGameIDPromise(gameid, include){ + getBettingMarketsByGamePromise(gameid, include){ var parameters = {}; parameters['gameid']=gameid; parameters['include']=include; @@ -160,7 +160,7 @@ class CFBv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by Market Type + /// Get Betting Markets - by Market Type /// /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). /// The Market Type ID of the desired MarketTypes to pull. Some common types include: 1 for Game Lines, 2 for Player Props, 3 for Team Props, 6 for Game Props @@ -181,54 +181,224 @@ class CFBv3OddsClient extends BaseClient { } /// - /// Get Sportsbooks (Active) + /// Get Sportsbooks - by Active /// - getSportsbooksActivePromise(){ + getSportsbooksByActivePromise(){ return this.GetPromise('/v3/cfb/odds/{format}/ActiveSportsbooks'); } /// - /// Get Betting Resulting By Market + /// Get Betting Results - by Market /// /// BettingMarketID of the market for which you would like to see resulted outcomes. Valid example ID 17819 - getBettingResultingByMarketPromise(marketId){ + getBettingResultsByMarketPromise(marketId){ var parameters = {}; parameters['marketId']=marketId; return this.GetPromise('/v3/cfb/odds/{format}/BettingMarketResults/{marketId}', parameters); } /// - /// Get Betting Splits By BettingMarketId + /// Get Betting Splits - by Betting Market /// /// The MarketId of the desired market for which to pull splits. - getBettingSplitsByBettingMarketIdPromise(marketId){ + getBettingSplitsByBettingMarketPromise(marketId){ var parameters = {}; parameters['marketId']=marketId; return this.GetPromise('/v3/cfb/odds/{format}/BettingSplitsByMarketId/{marketId}', parameters); } /// - /// Get Betting Splits By GameID + /// Get Betting Splits - by Game /// /// The ID of the game for which you want to receive splits for.Example 11778 - getBettingSplitsByGameIDPromise(gameid){ + getBettingSplitsByGamePromise(gameid){ var parameters = {}; parameters['gameid']=gameid; return this.GetPromise('/v3/cfb/odds/{format}/BettingSplitsByGameId/{gameid}', parameters); } /// - /// Get Betting Player Props by GameID + /// Get Betting Player Props - by Game /// /// The unique GameID of the game in question. /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. - getBettingPlayerPropsByGameIDPromise(gameId, include){ + getBettingPlayerPropsByGamePromise(gameId, include){ var parameters = {}; parameters['gameId']=gameId; parameters['include']=include; return this.GetPromise('/v3/cfb/odds/{format}/BettingPlayerPropsByGameID/{gameId}', parameters); } + /// + /// Get Betting Futures - by Season [Sportsbook Group] + /// + /// Year of the season Examples: 2020, 2021, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingFuturesBySeasonSportsbookGroupPromise(season, sportsbookgroup){ + var parameters = {}; + parameters['season']=season; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/cfb/odds/{format}/BettingFuturesBySeason/{season}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Market [Sportsbook Group] + /// + /// The MarketId of the desired market for which to pull all outcomes/bets. + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingMarketSportsbookGroupPromise(marketId, sportsbookgroup){ + var parameters = {}; + parameters['marketId']=marketId; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/cfb/odds/{format}/BettingMarket/{marketId}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Event [Sportsbook Group] + /// + /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingMarketsByEventSportsbookGroupPromise(eventId, sportsbookgroup, include){ + var parameters = {}; + parameters['eventId']=eventId; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/cfb/odds/{format}/BettingMarketsByEvent/{eventId}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Game [Sportsbook Group] + /// + /// The GameID of the desired game for which to pull all betting markets (includes outcomes/bets). + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingMarketsByGameSportsbookGroupPromise(gameid, sportsbookgroup, include){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/cfb/odds/{format}/BettingMarketsByGameID/{gameid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Market Type [Sportsbook Group] + /// + /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). + /// The Market Type ID of the desired MarketTypes to pull. Some common types include: 1 for Game Lines, 2 for Player Props, 3 for Team Props, 6 for Game Props + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingMarketsByMarketTypeSportsbookGroupPromise(eventId, marketTypeID, sportsbookgroup, include){ + var parameters = {}; + parameters['eventId']=eventId; + parameters['marketTypeID']=marketTypeID; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/cfb/odds/{format}/BettingMarketsByMarketType/{eventId}/{marketTypeID}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Player Props - by Game [Sportsbook Group] + /// + /// The unique GameID of the game in question. + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingPlayerPropsByGameSportsbookGroupPromise(gameId, sportsbookgroup, include){ + var parameters = {}; + parameters['gameId']=gameId; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/cfb/odds/{format}/BettingPlayerPropsByGameID/{gameId}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Results - by Market [Sportsbook Group] + /// + /// BettingMarketID of the market for which you would like to see resulted outcomes. Valid example ID 17819 + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingResultsByMarketSportsbookGroupPromise(marketId, sportsbookgroup){ + var parameters = {}; + parameters['marketId']=marketId; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/cfb/odds/{format}/BettingResultsByMarket/{marketId}/{sportsbookgroup}', parameters); + } + + /// + /// Get In-Game Odds - by Week [Sportsbook Group] + /// + /// Year of the season, with optional season type. Examples: 2018, 2018POST, etc. + /// The week of the game(s). Examples: 1, 2, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getInGameOddsByWeekSportsbookGroupPromise(season, week, sportsbookgroup){ + var parameters = {}; + parameters['season']=season; + parameters['week']=week; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/cfb/odds/{format}/InGameOddsByWeek/{season}/{week}/{sportsbookgroup}', parameters); + } + + /// + /// Get In-Game Odds Line Movement [Sportsbook Group] + /// + /// The GameID of an CFB game. GameIDs can be found in the Games API. Valid entries are 8487 or 8657 + /// The name of the Sportsbook grouping. Examples: G1100 + getInGameOddsLineMovementSportsbookGroupPromise(gameid, sportsbookgroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/cfb/odds/{format}/InGameLineMovement/{gameid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds - by Week [Sportsbook Group] + /// + /// Year of the season, with optional season type. Examples: 2018, 2018POST, etc. + /// The week of the game(s). Examples: 1, 2, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getPreGameAndPeriodGameOddsByWeekSportsbookGroupPromise(season, week, sportsbookgroup){ + var parameters = {}; + parameters['season']=season; + parameters['week']=week; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/cfb/odds/{format}/PreGameOddsByWeek/{season}/{week}/{sportsbookgroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds Line Movement [Sportsbook Group] + /// + /// The GameID of an CFB game. GameIDs can be found in the Games API. Valid entries are 8487 or 8657 + /// The name of the Sportsbook grouping. Examples: G1100 + getPreGameAndPeriodGameOddsLineMovementSportsbookGroupPromise(gameid, sportsbookgroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/cfb/odds/{format}/PreGameOddsLineMovement/{gameid}/{sportsbookgroup}', parameters); + } + + /// + /// Get In-Game Odds Line Movement with Resulting [Sportsbook Group] + /// + /// The GameID of an CFB game. GameIDs can be found in the Games API. Valid entries are 8487 or 8657 + /// The name of the Sportsbook grouping. Examples: G1100 + getInGameOddsLineMovementWithResultingSportsbookGroupPromise(gameid, sportsbookgroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/cfb/odds/{format}/InGameLineMovementWithResulting/{gameid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds Line Movement with Resulting [Sportsbook Group] + /// + /// The GameID of an CFB game. GameIDs can be found in the Games API. Valid entries are 8487 or 8657 + /// The name of the Sportsbook grouping. Examples: G1100 + getPreGameAndPeriodGameOddsLineMovementWithResultingSportsbookGroupPromise(gameid, sportsbookgroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/cfb/odds/{format}/PreGameOddsLineMovementWithResulting/{gameid}/{sportsbookgroup}', parameters); + } + } module.exports = CFBv3OddsClient; diff --git a/CFB/CFBv3Scores.js b/CFB/CFBv3Scores.js index 1e097f9..31bf518 100644 --- a/CFB/CFBv3Scores.js +++ b/CFB/CFBv3Scores.js @@ -15,42 +15,42 @@ class CFBv3ScoresClient extends BaseClient { } /// - /// Get Conference Hierarchy (with Teams) + /// Get Conference Hierarchy /// getConferenceHierarchyPromise(){ return this.GetPromise('/v3/cfb/scores/{format}/LeagueHierarchy'); } /// - /// Get Current Season + /// Get Season Current /// - getCurrentSeasonPromise(){ + getSeasonCurrentPromise(){ return this.GetPromise('/v3/cfb/scores/{format}/CurrentSeason'); } /// - /// Get Current Week + /// Get Week Current /// - getCurrentWeekPromise(){ + getWeekCurrentPromise(){ return this.GetPromise('/v3/cfb/scores/{format}/CurrentWeek'); } /// - /// Get Games by Date - Legacy + /// Get Games - by Date [Live & Final] /// /// The date of the game(s). Examples: 2016-SEP-01, 2017-SEP-10. - getGamesByDateLegacyPromise(date){ + getGamesByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/cfb/scores/{format}/GamesByDate/{date}', parameters); } /// - /// Get Games by Week - Legacy + /// Get Games - by Week [Live & Final] /// /// Year of the season. Examples: 2015, 2016, etc. /// The week of the game(s). Examples: 1, 2, 3, etc. - getGamesByWeekLegacyPromise(season, week){ + getGamesByWeekLiveFinalPromise(season, week){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -58,10 +58,10 @@ class CFBv3ScoresClient extends BaseClient { } /// - /// Get Schedules - Legacy + /// Get Schedules /// /// Year of the season (with optional season type). Examples: 2018, 2018PRE, 2018POST, 2018STAR, 2019, etc. - getSchedulesLegacyPromise(season){ + getSchedulesPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/cfb/scores/{format}/Games/{season}', parameters); @@ -75,11 +75,11 @@ class CFBv3ScoresClient extends BaseClient { } /// - /// Get Team Game Stats by Week + /// Get Team Game Stats - by Week [Live & Final] /// /// Year of the season. Examples: 2015, 2016, etc. /// The week of the game(s). Examples: 1, 2, 3, etc. - getTeamGameStatsByWeekPromise(season, week){ + getTeamGameStatsByWeekLiveFinalPromise(season, week){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -97,35 +97,35 @@ class CFBv3ScoresClient extends BaseClient { } /// - /// Get Teams - Legacy + /// Get Team Profiles - All /// - getTeamsLegacyPromise(){ + getTeamProfilesAllPromise(){ return this.GetPromise('/v3/cfb/scores/{format}/Teams'); } /// - /// Get Current SeasonType + /// Get Season Type - Current /// - getCurrentSeasonTypePromise(){ + getSeasonTypeCurrentPromise(){ return this.GetPromise('/v3/cfb/scores/{format}/CurrentSeasonType'); } /// - /// Get Current Season Details + /// Get Season Current - Details /// - getCurrentSeasonDetailsPromise(){ + getSeasonCurrentDetailsPromise(){ return this.GetPromise('/v3/cfb/scores/{format}/CurrentSeasonDetails'); } /// - /// Get Player Details By Active + /// Get Player Details - by Active /// getPlayerDetailsByActivePromise(){ return this.GetPromise('/v3/cfb/scores/{format}/Players'); } /// - /// Get Player Details By Player + /// Get Player Details - by Player /// /// Unique FantasyData Player ID. Example:50002016. getPlayerDetailsByPlayerPromise(playerid){ @@ -135,7 +135,7 @@ class CFBv3ScoresClient extends BaseClient { } /// - /// Get Player Details by Team + /// Get Player Details - by Team /// /// The abbreviation of the requested team. Examples: SF, NYY. getPlayerDetailsByTeamPromise(team){ @@ -145,14 +145,14 @@ class CFBv3ScoresClient extends BaseClient { } /// - /// Get Injured Players + /// Get Player Details - by Injured /// - getInjuredPlayersPromise(){ + getPlayerDetailsByInjuredPromise(){ return this.GetPromise('/v3/cfb/scores/{format}/InjuredPlayers'); } /// - /// Get Team Game Logs By Season + /// Get Team Game Logs - by Season /// /// Season to get games from. Example 2019POST, 2020 /// Unique ID of team. Example 1 @@ -166,49 +166,91 @@ class CFBv3ScoresClient extends BaseClient { } /// - /// Get Players by Team + /// Get Player Profiles - by Team /// /// The abbreviation of the requested team. Examples: SF, NYY. - getPlayersByTeamPromise(team){ + getPlayerProfilesByTeamPromise(team){ var parameters = {}; parameters['team']=team; return this.GetPromise('/v3/cfb/scores/{format}/PlayersBasic/{team}', parameters); } /// - /// Get Schedules + /// Get Schedules (Basic) /// /// Year of the season (with optional season type). Examples: 2018, 2018PRE, 2018POST, 2018STAR, 2019, etc. - getSchedulesPromise(season){ + getSchedulesBasicPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/cfb/scores/{format}/SchedulesBasic/{season}', parameters); } /// - /// Get Teams + /// Get Teams (Basic) - All /// - getTeamsPromise(){ + getTeamsBasicAllPromise(){ return this.GetPromise('/v3/cfb/scores/{format}/TeamsBasic'); } /// - /// Get Scores by Date + /// Get Games (Basic) - by Date [Live & Final] + /// + /// The date of the game(s). Examples: 2016-SEP-01, 2017-SEP-10. + getGamesBasicByDateLiveFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/cfb/scores/{format}/ScoresBasic/{date}', parameters); + } + + /// + /// Get Player Details - by Active + /// + getPlayerDetailsByActive_1458Promise(){ + return this.GetPromise('/v3/cfb/scores/{format}/PlayersByActive'); + } + + /// + /// Get Games by Date - [Final] + /// + /// The date of the game(s). Examples: 2016-SEP-01, 2017-SEP-10. + getGamesByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/cfb/scores/{format}/GamesByDateFinal/{date}', parameters); + } + + /// + /// Get Games (Basic) by Date - [Final] + /// + /// The date of the games. Examples: 2021-SEP-12, 2021-NOV-28. + getGamesBasicByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/cfb/scores/{format}/ScoresBasicFinal/{date}', parameters); + } + + /// + /// Get Games (Basic) - by Week [Final] /// /// Year of the season. Examples: 2015, 2016, etc. /// The week of the game(s). Examples: 1, 2, 3, etc. - getScoresByDatePromise(season, week){ + getGamesBasicByWeekFinalPromise(season, week){ var parameters = {}; parameters['season']=season; parameters['week']=week; - return this.GetPromise('/v3/cfb/scores/{format}/ScoresBasic/{season}/{week}', parameters); + return this.GetPromise('/v3/cfb/scores/{format}/ScoresBasicFinal/{season}/{week}', parameters); } /// - /// Get Players By Active + /// Get Games - by Week [Final] /// - getPlayersByActivePromise(){ - return this.GetPromise('/v3/cfb/scores/{format}/PlayersByActive'); + /// Year of the season. Examples: 2015, 2016, etc. + /// The week of the game(s). Examples: 1, 2, 3, etc. + getGamesByWeekFinalPromise(season, week){ + var parameters = {}; + parameters['season']=season; + parameters['week']=week; + return this.GetPromise('/v3/cfb/scores/{format}/GamesByWeekFinal/{season}/{week}', parameters); } } diff --git a/CFB/CFBv3Stats.js b/CFB/CFBv3Stats.js index 513a562..879e7a3 100644 --- a/CFB/CFBv3Stats.js +++ b/CFB/CFBv3Stats.js @@ -15,31 +15,31 @@ class CFBv3StatsClient extends BaseClient { } /// - /// Get Box Score + /// Get Box Score [Live & Final] /// /// The GameID of an CFB game. GameIDs can be found in the Games API. Valid entries are 1148 or 1149 - getBoxScorePromise(gameid){ + getBoxScoreLiveFinalPromise(gameid){ var parameters = {}; parameters['gameid']=gameid; return this.GetPromise('/v3/cfb/stats/{format}/BoxScore/{gameid}', parameters); } /// - /// Get Box Scores by Date + /// Get Box Scores - by Date [Live & Final] /// /// The date of the game(s). Examples: 2016-JAN-01, 2017-JAN-01. - getBoxScoresByDatePromise(date){ + getBoxScoresByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/cfb/stats/{format}/BoxScoresByDate/{date}', parameters); } /// - /// Get Box Scores by Week + /// Get Box Scores - by Week [Live & Final] /// /// Year of the season. Examples: 2017, 2018, etc. /// The week of the game(s). Examples: 2, 3, etc. - getBoxScoresByWeekPromise(season, week){ + getBoxScoresByWeekLiveFinalPromise(season, week){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -47,12 +47,12 @@ class CFBv3StatsClient extends BaseClient { } /// - /// Get Box Scores by Week Delta + /// Get Box Scores Delta - by Week /// /// Year of the season. Examples: 2015, 2016, etc. /// The week of the game(s). Examples: 1, 2, 3, etc. /// Only returns player statistics that have changed in the last X minutes. You specify how many minutes in time to go back. Valid entries are: 1 or 2. - getBoxScoresByWeekDeltaPromise(season, week, minutes){ + getBoxScoresDeltaByWeekPromise(season, week, minutes){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -61,42 +61,42 @@ class CFBv3StatsClient extends BaseClient { } /// - /// Get Conference Hierarchy (with Teams) + /// Get Conference Hierarchy /// getConferenceHierarchyPromise(){ return this.GetPromise('/v3/cfb/stats/{format}/LeagueHierarchy'); } /// - /// Get Current Season + /// Get Season Current /// - getCurrentSeasonPromise(){ + getSeasonCurrentPromise(){ return this.GetPromise('/v3/cfb/stats/{format}/CurrentSeason'); } /// - /// Get Current Week + /// Get Week Current /// - getCurrentWeekPromise(){ + getWeekCurrentPromise(){ return this.GetPromise('/v3/cfb/stats/{format}/CurrentWeek'); } /// - /// Get Games by Date + /// Get Games - by Date [Live & Final] /// /// The date of the game(s). Examples: 2016-SEP-01, 2017-SEP-10. - getGamesByDatePromise(date){ + getGamesByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/cfb/stats/{format}/GamesByDate/{date}', parameters); } /// - /// Get Games by Week + /// Get Games - by Week [Live & Final] /// /// Year of the season. Examples: 2015, 2016, etc. /// The week of the game(s). Examples: 1, 2, 3, etc. - getGamesByWeekPromise(season, week){ + getGamesByWeekLiveFinalPromise(season, week){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -104,14 +104,14 @@ class CFBv3StatsClient extends BaseClient { } /// - /// Get Player Details by Active + /// Get Player Details - by Active /// getPlayerDetailsByActivePromise(){ return this.GetPromise('/v3/cfb/stats/{format}/Players'); } /// - /// Get Player Details by Player + /// Get Player Details - by Player /// /// Unique FantasyData Player ID. Example:50002016. getPlayerDetailsByPlayerPromise(playerid){ @@ -121,7 +121,7 @@ class CFBv3StatsClient extends BaseClient { } /// - /// Get Player Details by Team + /// Get Player Details - by Team /// /// The abbreviation of the requested team. Examples: SF, NYY. getPlayerDetailsByTeamPromise(team){ @@ -131,12 +131,12 @@ class CFBv3StatsClient extends BaseClient { } /// - /// Get Player Game Stats by Player + /// Get Player Game Stats - by Player [Live & Final] /// /// Year of the season. Examples: 2015, 2016. /// The week of the game(s). Examples: 1, 2, 3, etc. /// Unique FantasyData Player ID. Example:50002016. - getPlayerGameStatsByPlayerPromise(season, week, playerid){ + getPlayerGameStatsByPlayerLiveFinalPromise(season, week, playerid){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -145,11 +145,11 @@ class CFBv3StatsClient extends BaseClient { } /// - /// Get Player Game Stats by Week + /// Get Player Game Stats - by Week [Live & Final] /// /// Year of the season. Examples: 2015, 2016. /// The week of the game(s). Examples: 1, 2, 3, etc. - getPlayerGameStatsByWeekPromise(season, week){ + getPlayerGameStatsByWeekLiveFinalPromise(season, week){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -167,7 +167,7 @@ class CFBv3StatsClient extends BaseClient { } /// - /// Get Player Season Stats By Player + /// Get Player Season Stats - by Player /// /// Year of the season (with optional season type). Examples: 2017, 2017POST, 2018. /// Unique FantasyData Player ID. Example:50002016. @@ -179,7 +179,7 @@ class CFBv3StatsClient extends BaseClient { } /// - /// Get Player Season Stats by Team + /// Get Player Season Stats - by Team /// /// Year of the season (with optional season type). Examples: 2017, 2017POST, 2018. /// The abbreviation of the requested team. Examples: SF, NYY. @@ -208,11 +208,11 @@ class CFBv3StatsClient extends BaseClient { } /// - /// Get Team Game Stats by Week + /// Get Team Game Stats - by Week [Live & Final] /// /// Year of the season. Examples: 2015, 2016, etc. /// The week of the game(s). Examples: 1, 2, 3, etc. - getTeamGameStatsByWeekPromise(season, week){ + getTeamGameStatsByWeekLiveFinalPromise(season, week){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -230,28 +230,28 @@ class CFBv3StatsClient extends BaseClient { } /// - /// Get Teams + /// Get Team Profiles - All /// - getTeamsPromise(){ + getTeamProfilesAllPromise(){ return this.GetPromise('/v3/cfb/stats/{format}/Teams'); } /// - /// Get Current SeasonType + /// Get Season Type - Current /// - getCurrentSeasonTypePromise(){ + getSeasonTypeCurrentPromise(){ return this.GetPromise('/v3/cfb/stats/{format}/CurrentSeasonType'); } /// - /// Get Current Season Details + /// Get Season Current - Details /// - getCurrentSeasonDetailsPromise(){ + getSeasonCurrentDetailsPromise(){ return this.GetPromise('/v3/cfb/stats/{format}/CurrentSeasonDetails'); } /// - /// Get Player Game Logs By Season + /// Get Player Game Logs - by Season /// /// Season to get games from. Example 2019POST, 2020 /// Unique FantasyData Player ID. Example:50036283. @@ -265,14 +265,14 @@ class CFBv3StatsClient extends BaseClient { } /// - /// Get Injured Players + /// Get Player Details - by Injured /// - getInjuredPlayersPromise(){ + getPlayerDetailsByInjuredPromise(){ return this.GetPromise('/v3/cfb/stats/{format}/InjuredPlayers'); } /// - /// Get Team Game Logs By Season + /// Get Team Game Logs - by Season /// /// Season to get games from. Example 2019POST, 2020 /// Unique ID of team. Example 1 @@ -285,6 +285,62 @@ class CFBv3StatsClient extends BaseClient { return this.GetPromise('/v3/cfb/stats/{format}/TeamGameStatsBySeason/{season}/{teamid}/{numberofgames}', parameters); } + /// + /// Get Box Score [Final] + /// + /// The GameID of an CFB game. GameIDs can be found in the Games API. Valid entries are 1148 or 1149 + getBoxScoreFinalPromise(gameid){ + var parameters = {}; + parameters['gameid']=gameid; + return this.GetPromise('/v3/cfb/stats/{format}/BoxScoreFinal/{gameid}', parameters); + } + + /// + /// Get Box Scores - by Date [Final] + /// + /// The date of the game(s). Examples: 2016-JAN-01, 2017-JAN-01. + getBoxScoresByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/cfb/stats/{format}/BoxScoresFinal/{date}', parameters); + } + + /// + /// Get Box Scores - by Week [Final] + /// + /// Year of the season. Examples: 2017, 2018, etc. + /// The week of the game(s). Examples: 2, 3, etc. + getBoxScoresByWeekFinalPromise(season, week){ + var parameters = {}; + parameters['season']=season; + parameters['week']=week; + return this.GetPromise('/v3/cfb/stats/{format}/BoxScoresByWeekFinal/{season}/{week}', parameters); + } + + /// + /// Get Player Game Stats - by Week [Final] + /// + /// Year of the season. Examples: 2015, 2016. + /// The week of the game(s). Examples: 1, 2, 3, etc. + getPlayerGameStatsByWeekFinalPromise(season, week){ + var parameters = {}; + parameters['season']=season; + parameters['week']=week; + return this.GetPromise('/v3/cfb/stats/{format}/PlayerGameStatsByWeekFinal/{season}/{week}', parameters); + } + + /// + /// Get Team Game Stats - by Week [Final] + /// + /// Year of the season. Examples: 2015, 2016, etc. + /// The week of the game(s). Examples: 1, 2, 3, etc. + getTeamGameStatsByWeekFinalPromise(season, week){ + var parameters = {}; + parameters['season']=season; + parameters['week']=week; + return this.GetPromise('/v3/cfb/stats/{format}/TeamGameStatsByWeekFinal/{season}/{week}', parameters); + } + } module.exports = CFBv3StatsClient; diff --git a/CWBB/CWBBv3Scores.js b/CWBB/CWBBv3Scores.js index 7ea4273..5a5b1cc 100644 --- a/CWBB/CWBBv3Scores.js +++ b/CWBB/CWBBv3Scores.js @@ -15,26 +15,26 @@ class CWBBv3ScoresClient extends BaseClient { } /// - /// Get Current Season + /// Get Season Current /// - getCurrentSeasonPromise(){ + getSeasonCurrentPromise(){ return this.GetPromise('/v3/cwbb/scores/{format}/CurrentSeason'); } /// - /// Get Games by Date + /// Get Games - by Date [Live & Final] /// /// The date of the game(s). Examples: 2020-FEB-27, 2019-DEC-01. - getGamesByDatePromise(date){ + getGamesByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/cwbb/scores/{format}/GamesByDate/{date}', parameters); } /// - /// Get League Hierarchy (Conferences and Teams) + /// Get League Hierarchy /// - getLeagueHierarchyConferencesAndTeamsPromise(){ + getLeagueHierarchyPromise(){ return this.GetPromise('/v3/cwbb/scores/{format}/LeagueHierarchy'); } @@ -49,12 +49,32 @@ class CWBBv3ScoresClient extends BaseClient { } /// - /// Get Teams + /// Get Team Profiles - All /// - getTeamsPromise(){ + getTeamProfilesAllPromise(){ return this.GetPromise('/v3/cwbb/scores/{format}/Teams'); } + /// + /// Get Games - by Date [Final] + /// + /// The date of the game(s). Examples: 2020-FEB-27, 2019-DEC-01. + getGamesByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/cwbb/scores/{format}/GamesByDateFinal/{date}', parameters); + } + + /// + /// Get Schedules (Basic) + /// + /// Year of the season (with optional season type). Examples: 2020, 2020PRE, 2020POST, 2019, etc. + getSchedulesBasicPromise(season){ + var parameters = {}; + parameters['season']=season; + return this.GetPromise('/v3/cwbb/scores/{format}/SchedulesBasic/{season}', parameters); + } + } module.exports = CWBBv3ScoresClient; diff --git a/Golf/Golfv2.js b/Golf/Golfv2.js index afc6894..26c6fd9 100644 --- a/Golf/Golfv2.js +++ b/Golf/Golfv2.js @@ -8,9 +8,9 @@ class Golfv2Client extends BaseClient { } /// - /// Get Injuries + /// Get Player Details - by Injured /// - getInjuriesPromise(){ + getPlayerDetailsByInjuredPromise(){ return this.GetPromise('/golf/v2/{format}/Injuries'); } @@ -22,10 +22,10 @@ class Golfv2Client extends BaseClient { } /// - /// Get Leaderboard + /// Get Leaderboard [Live & Final] /// /// The TournamentID of a tournament. TournamentIDs can be found in the Tournaments API. Valid entries are 58, 61, etc. - getLeaderboardPromise(tournamentid){ + getLeaderboardLiveFinalPromise(tournamentid){ var parameters = {}; parameters['tournamentid']=tournamentid; return this.GetPromise('/golf/v2/{format}/Leaderboard/{tournamentid}', parameters); @@ -39,7 +39,7 @@ class Golfv2Client extends BaseClient { } /// - /// Get News by Date + /// Get News - by Date /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. getNewsByDatePromise(date){ @@ -49,7 +49,7 @@ class Golfv2Client extends BaseClient { } /// - /// Get News by Player + /// Get News - by Player /// /// Unique FantasyData Player ID. Example:40000019. getNewsByPlayerPromise(playerid){ @@ -69,27 +69,27 @@ class Golfv2Client extends BaseClient { } /// - /// Get Player Season Stats (w/ World Golf Rankings) + /// Get Rankings /// /// Year of the season. Examples: 2016, 2017. - getPlayerSeasonStatsPromise(season){ + getRankingsPromise(season){ var parameters = {}; parameters['season']=season; - return this.GetPromise('/golf/v2/{format}/PlayerSeasonStats/{season}', parameters); + return this.GetPromise('/golf/v2/{format}/Rankings/{season}', parameters); } /// - /// Get Player Tournament Projected Stats (w/ DraftKings Salaries) + /// Get Player Projected Stats - by Tournament /// /// The TournamentID of a tournament. TournamentIDs can be found in the Tournaments API. Valid entries are 78, 79, 80, etc. - getPlayerTournamentProjectedStatsPromise(tournamentid){ + getPlayerProjectedStatsByTournamentPromise(tournamentid){ var parameters = {}; parameters['tournamentid']=tournamentid; return this.GetPromise('/golf/v2/{format}/PlayerTournamentProjectionStats/{tournamentid}', parameters); } /// - /// Get Player Tournament Stats By Player + /// Get Player Tournament Stats - by Player /// /// The TournamentID of a tournament. TournamentIDs can be found in the Tournaments API. Valid entries are 58, 61, etc. /// Unique FantasyData Player ID. Example:40000019. @@ -101,31 +101,31 @@ class Golfv2Client extends BaseClient { } /// - /// Get Players + /// Get Player Profiles - All /// - getPlayersPromise(){ + getPlayerProfilesAllPromise(){ return this.GetPromise('/golf/v2/{format}/Players'); } /// - /// Get Schedule + /// Get Schedules /// - getSchedulePromise(){ + getSchedulesPromise(){ return this.GetPromise('/golf/v2/{format}/Tournaments'); } /// - /// Get DFS Slates + /// Get DFS Slates - by Tournament /// /// The TournamentID of a tournament. TournamentIDs can be found in the Tournaments API. Valid entries are 58, 61, etc. - getDFSSlatesPromise(tournamentid){ + getDFSSlatesByTournamentPromise(tournamentid){ var parameters = {}; parameters['tournamentid']=tournamentid; return this.GetPromise('/golf/v2/{format}/DfsSlatesByTournament/{tournamentid}', parameters); } /// - /// Get Schedule by Season + /// Get Schedule - by Season /// /// Year of the season. Examples: 2016, 2017. getScheduleBySeasonPromise(season){ @@ -135,12 +135,109 @@ class Golfv2Client extends BaseClient { } /// - /// Get Current Season + /// Get Season Current /// - getCurrentSeasonPromise(){ + getSeasonCurrentPromise(){ return this.GetPromise('/golf/v2/{format}/CurrentSeason'); } + /// + /// Get Courses + /// + getCoursesPromise(){ + return this.GetPromise('/golf/v2/{format}/Courses'); + } + + /// + /// Get Leaderboard (Basic) + /// + /// The TournamentID of a tournament. TournamentIDs can be found in the Tournaments API. Valid entries are 58, 61, etc. + getLeaderboardBasicPromise(tournamentid){ + var parameters = {}; + parameters['tournamentid']=tournamentid; + return this.GetPromise('/golf/v2/{format}/LeaderboardBasic/{tournamentid}', parameters); + } + + /// + /// Get Leaderboard (Basic) [Final] + /// + /// The TournamentID of a tournament. TournamentIDs can be found in the Tournaments API. Valid entries are 58, 61, etc. + getLeaderboardBasicFinalPromise(tournamentid){ + var parameters = {}; + parameters['tournamentid']=tournamentid; + return this.GetPromise('/golf/v2/{format}/LeaderboardBasicFinal/{tournamentid}', parameters); + } + + /// + /// Get Leaderboard [Final] + /// + /// The TournamentID of a tournament. TournamentIDs can be found in the Tournaments API. Valid entries are 58, 61, etc. + getLeaderboardFinalPromise(tournamentid){ + var parameters = {}; + parameters['tournamentid']=tournamentid; + return this.GetPromise('/golf/v2/{format}/LeaderboardFinal/{tournamentid}', parameters); + } + + /// + /// Get Fantasy Points - by Tournament + /// + /// The TournamentID of a tournament. TournamentIDs can be found in the Tournaments API. Valid entries are 78, 79, 80, etc. + getFantasyPointsByTournamentPromise(tournamentid){ + var parameters = {}; + parameters['tournamentid']=tournamentid; + return this.GetPromise('/golf/v2/{format}/FantasyGameStatsByTournament/{tournamentid}', parameters); + } + + /// + /// Get Player Hole Scores - by Tournament [Live & Final] + /// + /// The TournamentID of a tournament. TournamentIDs can be found in the Tournaments API. Valid entries are 58, 61, etc. + getPlayerHoleScoresByTournamentLiveFinalPromise(tournamentid){ + var parameters = {}; + parameters['tournamentid']=tournamentid; + return this.GetPromise('/golf/v2/{format}/PlayerTournamentHoleScores/{tournamentid}', parameters); + } + + /// + /// Get Player Hole Scores - by Tournament [Final] + /// + /// The TournamentID of a tournament. TournamentIDs can be found in the Tournaments API. Valid entries are 58, 61, etc. + getPlayerHoleScoresByTournamentFinalPromise(tournamentid){ + var parameters = {}; + parameters['tournamentid']=tournamentid; + return this.GetPromise('/golf/v2/{format}/PlayerTournamentHoleScoresFinal/{tournamentid}', parameters); + } + + /// + /// Get Scores - by Tournament [Live & Final] + /// + /// The TournamentID of a tournament. TournamentIDs can be found in the Tournaments API. Valid entries are 58, 61, etc. + getScoresByTournamentLiveFinalPromise(tournamentid){ + var parameters = {}; + parameters['tournamentid']=tournamentid; + return this.GetPromise('/golf/v2/{format}/PlayerTournamentRoundScores/{tournamentid}', parameters); + } + + /// + /// Get Scores - by Tournament [Final] + /// + /// The TournamentID of a tournament. TournamentIDs can be found in the Tournaments API. Valid entries are 58, 61, etc. + getScoresByTournamentFinalPromise(tournamentid){ + var parameters = {}; + parameters['tournamentid']=tournamentid; + return this.GetPromise('/golf/v2/{format}/PlayerTournamentRoundScoresFinal/{tournamentid}', parameters); + } + + /// + /// Get Player Season Stats + /// + /// Year of the season. Examples: 2016, 2017. + getPlayerSeasonStatsPromise(season){ + var parameters = {}; + parameters['season']=season; + return this.GetPromise('/golf/v2/{format}/PlayerSeasonStats/{season}', parameters); + } + } module.exports = Golfv2Client; diff --git a/Golf/Golfv3Odds.js b/Golf/Golfv3Odds.js index 665cde3..ccdbcdf 100644 --- a/Golf/Golfv3Odds.js +++ b/Golf/Golfv3Odds.js @@ -28,34 +28,34 @@ class Golfv3OddsClient extends BaseClient { } /// - /// Get In-play Tournament Odds + /// Get In-Play Tournament Odds /// /// The TournamentID of a tournament. TournamentIDs can be found in the Tournaments API. Valid entries are 58, 61, etc. - getInplayTournamentOddsPromise(tournamentid){ + getInPlayTournamentOddsPromise(tournamentid){ var parameters = {}; parameters['tournamentid']=tournamentid; return this.GetPromise('/v3/golf/odds/{format}/InPlayTournamentOdds/{tournamentid}', parameters); } /// - /// Get In-play Tournament Odds Line Movement + /// Get In-Play Tournament Odds Line Movement /// /// The TournamentID of a tournament. TournamentIDs can be found in the Tournaments API. Valid entries are 58, 61, etc. - getInplayTournamentOddsLineMovementPromise(tournamentid){ + getInPlayTournamentOddsLineMovementPromise(tournamentid){ var parameters = {}; parameters['tournamentid']=tournamentid; return this.GetPromise('/v3/golf/odds/{format}/InPlayTournamentOddsLineMovement/{tournamentid}', parameters); } /// - /// Get Sportsbooks (Active) + /// Get Sportsbooks - by Active /// - getSportsbooksActivePromise(){ + getSportsbooksByActivePromise(){ return this.GetPromise('/v3/golf/odds/{format}/ActiveSportsbooks'); } /// - /// Get Betting Events by Date + /// Get Betting Events - by Date /// /// The date of the tournament(s). Can be any of the dates for the span of a tournament (i.e. Thursday through Sunday). Examples: 2020-10-17 getBettingEventsByDatePromise(date){ @@ -65,7 +65,7 @@ class Golfv3OddsClient extends BaseClient { } /// - /// Get Betting Events by Season + /// Get Betting Events - by Season /// /// Year of the season Examples: 2020, 2021, etc. getBettingEventsBySeasonPromise(season){ @@ -85,7 +85,7 @@ class Golfv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by Event + /// Get Betting Markets - by Event /// /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. @@ -97,7 +97,7 @@ class Golfv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by Market Type + /// Get Betting Markets - by Market Type /// /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). @@ -111,11 +111,11 @@ class Golfv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by TournamentID + /// Get Betting Markets - by Tournament /// /// The TournamentID of the desired tournament for which to pull all betting markets (includes outcomes/bets). /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. - getBettingMarketsByTournamentIDPromise(tournamentid, include){ + getBettingMarketsByTournamentPromise(tournamentid, include){ var parameters = {}; parameters['tournamentid']=tournamentid; parameters['include']=include; @@ -129,6 +129,134 @@ class Golfv3OddsClient extends BaseClient { return this.GetPromise('/v3/golf/odds/{format}/BettingMetadata'); } + /// + /// Get Betting Market [Sportsbook Group] + /// + /// The MarketId of the desired market for which to pull all outcomes/bets. + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingMarketSportsbookGroupPromise(marketId, sportsbookgroup){ + var parameters = {}; + parameters['marketId']=marketId; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/golf/odds/{format}/BettingMarket/{marketId}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Event [Sportsbook Group] + /// + /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingMarketsByEventSportsbookGroupPromise(eventId, sportsbookgroup, include){ + var parameters = {}; + parameters['eventId']=eventId; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/golf/odds/{format}/BettingMarketsByEvent/{eventId}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Market Type [Sportsbook Group] + /// + /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). + /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingMarketsByMarketTypeSportsbookGroupPromise(eventId, marketTypeID, sportsbookgroup, include){ + var parameters = {}; + parameters['eventId']=eventId; + parameters['marketTypeID']=marketTypeID; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/golf/odds/{format}/BettingMarketsByMarketType/{eventId}/{marketTypeID}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Tournament [Sportsbook Group] + /// + /// The TournamentID of the desired tournament for which to pull all betting markets (includes outcomes/bets). + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingMarketsByTournamentSportsbookGroupPromise(tournamentid, sportsbookgroup, include){ + var parameters = {}; + parameters['tournamentid']=tournamentid; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/golf/odds/{format}/BettingMarketsByTournamentID/{tournamentid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Player Props - by Tournament [Sportsbook Group] + /// + /// The TournamentID of the desired tournament for which to pull all betting markets (includes outcomes/bets). + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingPlayerPropsByTournamentSportsbookGroupPromise(tournamentid, sportsbookgroup, include){ + var parameters = {}; + parameters['tournamentid']=tournamentid; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/golf/odds/{format}/BettingPlayerPropsByTournamentID/{tournamentid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Tournament Odds [Sportsbook Group] + /// + /// The TournamentID of a tournament. TournamentIDs can be found in the Tournaments API. Valid entries are 58, 61, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getTournamentOddsSportsbookGroupPromise(tournamentid, sportsbookgroup){ + var parameters = {}; + parameters['tournamentid']=tournamentid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/golf/odds/{format}/TournamentOdds/{tournamentid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Tournament Odds Line Movement [Sportsbook Group] + /// + /// The TournamentID of a tournament. TournamentIDs can be found in the Tournaments API. Valid entries are 58, 61, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getTournamentOddsLineMovementSportsbookGroupPromise(tournamentid, sportsbookgroup){ + var parameters = {}; + parameters['tournamentid']=tournamentid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/golf/odds/{format}/TournamentOddsLineMovement/{tournamentid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Market + /// + /// The MarketId of the desired market for which to pull all outcomes/bets. + getBettingMarket_1701Promise(marketId){ + var parameters = {}; + parameters['marketId']=marketId; + return this.GetPromise('/v3/golf/odds/{format}/BettingMarket/{marketId}', parameters); + } + + /// + /// Get In-Play Tournament Odds [Sportsbook Group] + /// + /// The TournamentID of a tournament. TournamentIDs can be found in the Tournaments API. Valid entries are 58, 61, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getInPlayTournamentOddsSportsbookGroupPromise(tournamentid, sportsbookgroup){ + var parameters = {}; + parameters['tournamentid']=tournamentid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/golf/odds/{format}/InPlayTournamentOdds/{tournamentid}/{sportsbookgroup}', parameters); + } + + /// + /// Get In-Play Tournament Odds Line Movement [Sportsbook Group] + /// + /// The TournamentID of a tournament. TournamentIDs can be found in the Tournaments API. Valid entries are 58, 61, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getInPlayTournamentOddsLineMovementSportsbookGroupPromise(tournamentid, sportsbookgroup){ + var parameters = {}; + parameters['tournamentid']=tournamentid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/golf/odds/{format}/InPlayTournamentOddsLineMovement/{tournamentid}/{sportsbookgroup}', parameters); + } + } module.exports = Golfv3OddsClient; diff --git a/Golf/Golfv3RotoBallerPremiumNews.js b/Golf/Golfv3RotoBallerPremiumNews.js index cd4dfc6..bf1d8a0 100644 --- a/Golf/Golfv3RotoBallerPremiumNews.js +++ b/Golf/Golfv3RotoBallerPremiumNews.js @@ -15,7 +15,7 @@ class Golfv3RotoBallerPremiumNewsClient extends BaseClient { } /// - /// Get Premium News by Date + /// Get Premium News - by Date /// /// The date of the news. Examples: 2021-JAN-06, 2021-JAN-31. getPremiumNewsByDatePromise(date){ @@ -25,7 +25,7 @@ class Golfv3RotoBallerPremiumNewsClient extends BaseClient { } /// - /// Get Premium News by Player + /// Get Premium News - by Player /// /// Unique SportsDataIO Player ID. Example:40000019. getPremiumNewsByPlayerPromise(playerid){ diff --git a/Golf/Golfv3RotoworldPlayerNews.js b/Golf/Golfv3RotoworldPlayerNews.js index b0e4ab3..e089c65 100644 --- a/Golf/Golfv3RotoworldPlayerNews.js +++ b/Golf/Golfv3RotoworldPlayerNews.js @@ -8,14 +8,14 @@ class Golfv3RotoworldPlayerNewsClient extends BaseClient { } /// - /// Get Rotoworld Player News (Recent) + /// Get Rotoworld Player News - by Recent /// - getRotoworldPlayerNewsRecentPromise(){ + getRotoworldPlayerNewsByRecentPromise(){ return this.GetPromise('/v3/golf/rotoworld/{format}/RotoworldPlayerNews'); } /// - /// Get Rotoworld Player News by Date + /// Get Rotoworld Player News - by Date /// /// The date of the news. Examples: 2022-JUL-31, 2022-SEP-01. getRotoworldPlayerNewsByDatePromise(date){ diff --git a/MLB/MLBv3Odds.js b/MLB/MLBv3Odds.js index 97d8365..4d1ce81 100644 --- a/MLB/MLBv3Odds.js +++ b/MLB/MLBv3Odds.js @@ -8,7 +8,7 @@ class MLBv3OddsClient extends BaseClient { } /// - /// Get Pre-Game Odds by Date + /// Get Pre-Game Odds - by Date /// /// The date of the game(s). Examples: 2018-06-20, 2018-06-23. getPreGameOddsByDatePromise(date){ @@ -28,7 +28,7 @@ class MLBv3OddsClient extends BaseClient { } /// - /// Get In-Game Odds by Date + /// Get In-Game Odds - by Date /// /// The date of the game(s). Examples: 2018-06-20, 2018-06-23. getInGameOddsByDatePromise(date){ @@ -82,7 +82,7 @@ class MLBv3OddsClient extends BaseClient { } /// - /// Get Period Game Odds by Date + /// Get Period Game Odds - by Date /// /// The date of the game(s). Examples: 2018-06-20, 2018-06-23. getPeriodGameOddsByDatePromise(date){ @@ -102,7 +102,7 @@ class MLBv3OddsClient extends BaseClient { } /// - /// Get Betting Trends by Matchup + /// Get Betting Trends - by Matchup /// /// The abbreviation of the requested team. Examples: PHI, MIN, DET, etc. /// The abbreviation of the requested opponent. Examples: PHI, MIN, DET, etc. @@ -114,7 +114,7 @@ class MLBv3OddsClient extends BaseClient { } /// - /// Get Betting Trends by Team + /// Get Betting Trends - by Team /// /// The abbreviation of the requested team. Examples: PHI, MIN, DET, etc. getBettingTrendsByTeamPromise(team){ @@ -124,7 +124,7 @@ class MLBv3OddsClient extends BaseClient { } /// - /// Get Betting Events by Date + /// Get Betting Events - by Date /// /// The date of the game(s). Examples: 2020-08-20, 2020-08-23. getBettingEventsByDatePromise(date){ @@ -134,7 +134,7 @@ class MLBv3OddsClient extends BaseClient { } /// - /// Get Betting Events by Season + /// Get Betting Events - by Season /// /// Year of the season (with optional season type). Examples: 2020, 2020PRE, 2020POST, 2020STAR, 2021, etc. getBettingEventsBySeasonPromise(season){ @@ -144,7 +144,7 @@ class MLBv3OddsClient extends BaseClient { } /// - /// Get Betting Futures by Season + /// Get Betting Futures - by Season /// /// Year of the season (with optional season type). Examples: 2020, 2020PRE, 2020POST, 2020STAR, 2021, etc. getBettingFuturesBySeasonPromise(season){ @@ -164,7 +164,7 @@ class MLBv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by Event + /// Get Betting Markets - by Event /// /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. @@ -176,11 +176,11 @@ class MLBv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by GameID + /// Get Betting Markets - by Game /// /// The GameID of the desired game for which to pull all betting markets (includes outcomes/bets). /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. - getBettingMarketsByGameIDPromise(gameID, include){ + getBettingMarketsByGamePromise(gameID, include){ var parameters = {}; parameters['gameID']=gameID; parameters['include']=include; @@ -188,7 +188,7 @@ class MLBv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by Market Type + /// Get Betting Markets - by Market Type /// /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). /// The Market Type ID of the desired MarketTypes to pull. Some common types include: 1 for Game Lines, 2 for Player Props, 3 for Team Props, 6 for Game Props @@ -209,14 +209,14 @@ class MLBv3OddsClient extends BaseClient { } /// - /// Get Sportsbooks (Active) + /// Get Sportsbooks - by Active /// - getSportsbooksActivePromise(){ + getSportsbooksByActivePromise(){ return this.GetPromise('/v3/mlb/odds/{format}/ActiveSportsbooks'); } /// - /// Get Betting Results By Market + /// Get Betting Results - by Market /// /// The MarketId of the desired market for which to pull all outcomes/bets. Valid IDs include 837872, 841068 getBettingResultsByMarketPromise(marketId){ @@ -226,37 +226,205 @@ class MLBv3OddsClient extends BaseClient { } /// - /// Get Betting Splits By BettingMarketId + /// Get Betting Splits by - Betting Market /// /// The MarketId of the desired market for which to pull splits.. Valid IDs include 837872 - getBettingSplitsByBettingMarketIdPromise(marketId){ + getBettingSplitsByBettingMarketPromise(marketId){ var parameters = {}; parameters['marketId']=marketId; return this.GetPromise('/v3/mlb/odds/{format}/BettingSplitsByMarketId/{marketId}', parameters); } /// - /// Get Betting Splits By GameID + /// Get Betting Splits - by Game /// /// The ID of the game for which you want to receive splits for. Example 63266. - getBettingSplitsByGameIDPromise(gameId){ + getBettingSplitsByGamePromise(gameId){ var parameters = {}; parameters['gameId']=gameId; return this.GetPromise('/v3/mlb/odds/{format}/BettingSplitsByGameId/{gameId}', parameters); } /// - /// Get Betting Player Props by GameID + /// Get Betting Player Props - by Game /// /// The unique GameID of the game in question. /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. - getBettingPlayerPropsByGameIDPromise(gameId, include){ + getBettingPlayerPropsByGamePromise(gameId, include){ var parameters = {}; parameters['gameId']=gameId; parameters['include']=include; return this.GetPromise('/v3/mlb/odds/{format}/BettingPlayerPropsByGameID/{gameId}', parameters); } + /// + /// Get Betting Futures - by Season [Sportsbook Group] + /// + /// Year of the season (with optional season type). Examples: 2020, 2020PRE, 2020POST, 2020STAR, 2021, etc. + /// The name of the sportsbook group that will filter outcomes. + getBettingFuturesBySeasonSportsbookGroupPromise(season, sportsbookGroup){ + var parameters = {}; + parameters['season']=season; + parameters['sportsbookGroup']=sportsbookGroup; + return this.GetPromise('/v3/mlb/odds/{format}/BettingFuturesBySeason/{season}/{sportsbookGroup}', parameters); + } + + /// + /// Get Betting Market - [Sportsbook Group] + /// + /// The MarketId of the desired market for which to pull all outcomes/bets. + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + /// The name of the sportsbook group that will filter outcomes. + getBettingMarketSportsbookGroupPromise(marketId, include, sportsbookGroup){ + var parameters = {}; + parameters['marketId']=marketId; + parameters['include']=include; + parameters['sportsbookGroup']=sportsbookGroup; + return this.GetPromise('/v3/mlb/odds/{format}/BettingMarket/{marketId}/{sportsbookGroup}', parameters); + } + + /// + /// Get Betting Markets - by Event [Sportsbook Group] + /// + /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). + /// The name of the sportsbook group that will filter outcomes. + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingMarketsByEventSportsbookGroupPromise(eventId, sportsbookGroup, include){ + var parameters = {}; + parameters['eventId']=eventId; + parameters['sportsbookGroup']=sportsbookGroup; + parameters['include']=include; + return this.GetPromise('/v3/mlb/odds/{format}/BettingMarketsByEvent/{eventId}/{sportsbookGroup}', parameters); + } + + /// + /// Get Betting Markets - by Game [Sportsbook Group] + /// + /// The GameID of the desired game for which to pull all betting markets (includes outcomes/bets). + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + /// The name of the sportsbook group that will filter outcomes. + getBettingMarketsByGameSportsbookGroupPromise(gameID, include, sportsbookGroup){ + var parameters = {}; + parameters['gameID']=gameID; + parameters['include']=include; + parameters['sportsbookGroup']=sportsbookGroup; + return this.GetPromise('/v3/mlb/odds/{format}/BettingMarketsByGameID/{gameID}/{sportsbookGroup}', parameters); + } + + /// + /// Get Betting Markets - by Market Type [Sportsbook Group] + /// + /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). + /// The Market Type ID of the desired MarketTypes to pull. Some common types include: 1 for Game Lines, 2 for Player Props, 3 for Team Props, 6 for Game Props + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + /// The name of the sportsbook group that will filter outcomes. + getBettingMarketsByMarketTypeSportsbookGroupPromise(eventID, marketTypeID, include, sportsbookGroup){ + var parameters = {}; + parameters['eventID']=eventID; + parameters['marketTypeID']=marketTypeID; + parameters['include']=include; + parameters['sportsbookGroup']=sportsbookGroup; + return this.GetPromise('/v3/mlb/odds/{format}/BettingMarketsByMarketType/{eventID}/{marketTypeID}/{sportsbookGroup}', parameters); + } + + /// + /// Get Betting Player Props - by Game [Sportsbook Group] + /// + /// The unique GameID of the game in question. + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + /// The name of the sportsbook group that will filter outcomes. + getBettingPlayerPropsByGameSportsbookGroupPromise(gameId, include, sportsbookGroup){ + var parameters = {}; + parameters['gameId']=gameId; + parameters['include']=include; + parameters['sportsbookGroup']=sportsbookGroup; + return this.GetPromise('/v3/mlb/odds/{format}/BettingPlayerPropsByGameID/{gameId}/{sportsbookGroup}', parameters); + } + + /// + /// Get Betting Results - by Market [Sportsbook Group] + /// + /// The MarketId of the desired market for which to pull all outcomes/bets. Valid IDs include 837872, 841068 + /// The name of the sportsbook group that will filter outcomes. + getBettingResultsByMarketSportsbookGroupPromise(marketID, sportsbookGroup){ + var parameters = {}; + parameters['marketID']=marketID; + parameters['sportsbookGroup']=sportsbookGroup; + return this.GetPromise('/v3/mlb/odds/{format}/BettingMarketResults/{marketID}/{sportsbookGroup}', parameters); + } + + /// + /// Get In-Game Odds - by Date [Sportsbook Group] + /// + /// The date of the game(s). Examples: 2018-06-20, 2018-06-23. + /// The name of the sportsbook group that will filter outcomes. + getInGameOddsByDateSportsbookGroupPromise(date, sportsbookGroup){ + var parameters = {}; + parameters['date']=date; + parameters['sportsbookGroup']=sportsbookGroup; + return this.GetPromise('/v3/mlb/odds/{format}/InGameOddsByDate/{date}/{sportsbookGroup}', parameters); + } + + /// + /// Get In-Game Odds Line Movement [Sportsbook Group] + /// + /// The GameID of an MLB game. GameIDs can be found in the Games API. Valid entries are 51735 or 51745 + /// The name of the sportsbook group that will filter outcomes. + getInGameOddsLineMovementSportsbookGroupPromise(gameid, sportsbookGroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookGroup']=sportsbookGroup; + return this.GetPromise('/v3/mlb/odds/{format}/InGameOddsLineMovement/{gameid}/{sportsbookGroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds - by Date [Sportsbook Group] + /// + /// The date of the game(s). Examples: 2018-06-20, 2018-06-23. + /// The name of the sportsbook group that will filter outcomes. + getPreGameAndPeriodGameOddsByDateSportsbookGroupPromise(date, sportsbookGroup){ + var parameters = {}; + parameters['date']=date; + parameters['sportsbookGroup']=sportsbookGroup; + return this.GetPromise('/v3/mlb/odds/{format}/PreGameOddsByDate/{date}/{sportsbookGroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds Line Movement [Sportsbook Group] + /// + /// The GameID of an MLB game. GameIDs can be found in the Games API. Valid entries are 51735 or 51745 + /// The name of the sportsbook group that will filter outcomes. + getPreGameAndPeriodGameOddsLineMovementSportsbookGroupPromise(gameid, sportsbookGroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookGroup']=sportsbookGroup; + return this.GetPromise('/v3/mlb/odds/{format}/PreGameOddsLineMovement/{gameid}/{sportsbookGroup}', parameters); + } + + /// + /// Get In-Game Odds Line Movement with Resulting [Sportsbook Group] + /// + /// The GameID of an MLB game. GameIDs can be found in the Games API. Valid entries are 51735 or 51745 + /// The name of the sportsbook group that will filter outcomes. + getInGameOddsLineMovementWithResultingSportsbookGroupPromise(gameid, sportsbookGroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookGroup']=sportsbookGroup; + return this.GetPromise('/v3/mlb/odds/{format}/InGameOddsLineMovementWithResulting/{gameid}/{sportsbookGroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds Line Movement with Resulting [Sportsbook Group] + /// + /// The GameID of an MLB game. GameIDs can be found in the Games API. Valid entries are 51735 or 51745 + /// The name of the sportsbook group that will filter outcomes. + getPreGameAndPeriodGameOddsLineMovementWithResultingSportsbookGroupPromise(gameid, sportsbookGroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookGroup']=sportsbookGroup; + return this.GetPromise('/v3/mlb/odds/{format}/PreGameOddsLineMovementWithResulting/{gameid}/{sportsbookGroup}', parameters); + } + } module.exports = MLBv3OddsClient; diff --git a/MLB/MLBv3PlayByPlay.js b/MLB/MLBv3PlayByPlay.js index 3351a77..70232f0 100644 --- a/MLB/MLBv3PlayByPlay.js +++ b/MLB/MLBv3PlayByPlay.js @@ -8,10 +8,10 @@ class MLBv3PlayByPlayClient extends BaseClient { } /// - /// Get Play By Play + /// Get Play By Play [Live & Final] /// /// The GameID of an MLB game. GameIDs can be found in the Games API. Valid entries are 14620 or 16905 - getPlayByPlayPromise(gameid){ + getPlayByPlayLiveFinalPromise(gameid){ var parameters = {}; parameters['gameid']=gameid; return this.GetPromise('/v3/mlb/pbp/{format}/PlayByPlay/{gameid}', parameters); @@ -29,6 +29,16 @@ class MLBv3PlayByPlayClient extends BaseClient { return this.GetPromise('/v3/mlb/pbp/{format}/PlayByPlayDelta/{date}/{minutes}', parameters); } + /// + /// Get Play By Play [Final] + /// + /// The GameID of an MLB game. GameIDs can be found in the Games API. Valid entries are 14620 or 16905 + getPlayByPlayFinalPromise(gameid){ + var parameters = {}; + parameters['gameid']=gameid; + return this.GetPromise('/v3/mlb/pbp/{format}/PlayByPlayFinal/{gameid}', parameters); + } + } module.exports = MLBv3PlayByPlayClient; diff --git a/MLB/MLBv3Projections.js b/MLB/MLBv3Projections.js index 7d1e6b3..b856bec 100644 --- a/MLB/MLBv3Projections.js +++ b/MLB/MLBv3Projections.js @@ -8,7 +8,7 @@ class MLBv3ProjectionsClient extends BaseClient { } /// - /// Get DFS Slates by Date + /// Get DFS Slates - by Date /// /// The date of the slates. Examples: 2017-JUL-31, 2017-SEP-01. getDFSSlatesByDatePromise(date){ @@ -18,7 +18,7 @@ class MLBv3ProjectionsClient extends BaseClient { } /// - /// Get Projected Player Game Stats by Date (w/ Injuries, DFS Salaries) - Legacy + /// Get Projected Player Game Stats - by Date /// /// The date of the game(s). Examples: 2017-JUL-31, 2017-SEP-01. getProjectedPlayerGameStatsByDatePromise(date){ @@ -40,24 +40,24 @@ class MLBv3ProjectionsClient extends BaseClient { } /// - /// Get Projected Player Season Stats (with ADP) + /// Get Projected Player Season Stats With ADP /// /// Year of the season. Examples: 2017, 2018. - getProjectedPlayerSeasonStatsPromise(season){ + getProjectedPlayerSeasonStatsWithADPPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/mlb/projections/{format}/PlayerSeasonProjectionStats/{season}', parameters); } /// - /// Get Injured Players + /// Get Player Details - by Injured /// - getInjuredPlayersPromise(){ + getPlayerDetailsByInjuredPromise(){ return this.GetPromise('/v3/mlb/projections/{format}/InjuredPlayers'); } /// - /// Get Starting Lineups by Date + /// Get Starting Lineups - by Date /// /// The date of the slates. Examples: 2017-JUL-31, 2017-SEP-01. getStartingLineupsByDatePromise(date){ @@ -74,7 +74,7 @@ class MLBv3ProjectionsClient extends BaseClient { } /// - /// Get BAKER Projected Player Game Stats by Date (w/ Injuries, DFS Salaries) + /// Get BAKER Projected Player Game Stats - by Date /// /// The date of the game(s). Examples: 2023-JUL-31, 2023-SEP-01. getBAKERProjectedPlayerGameStatsByDatePromise(date){ @@ -84,11 +84,11 @@ class MLBv3ProjectionsClient extends BaseClient { } /// - /// Get BAKER Projected Player Game Stats by Date (w/ Injuries, DFS Salaries) + /// Get BAKER Projected Player Game Stats - by Date /// /// The date of the game(s). Examples: 2023-JUL-31, 2023-SEP-01. /// The abbreviation of the requested team. Examples: SF, NYY. - getBAKERProjectedPlayerGameStatsByDatePromise(date, team){ + getBAKERProjectedPlayerGameStatsByDate_1441Promise(date, team){ var parameters = {}; parameters['date']=date; parameters['team']=team; diff --git a/MLB/MLBv3RotoBallerArticles.js b/MLB/MLBv3RotoBallerArticles.js index b227e7a..115908c 100644 --- a/MLB/MLBv3RotoBallerArticles.js +++ b/MLB/MLBv3RotoBallerArticles.js @@ -15,7 +15,7 @@ class MLBv3RotoBallerArticlesClient extends BaseClient { } /// - /// Get RotoBaller Articles By Date + /// Get RotoBaller Articles - by Date /// /// The date of the news. Examples: 2017-JUL-31, 2017-SEP-01. getRotoBallerArticlesByDatePromise(date){ @@ -25,7 +25,7 @@ class MLBv3RotoBallerArticlesClient extends BaseClient { } /// - /// Get RotoBaller Articles By Player + /// Get RotoBaller Articles - by Player /// /// Unique FantasyData Player ID. Example:10000507. getRotoBallerArticlesByPlayerPromise(playerid){ diff --git a/MLB/MLBv3RotoBallerPremiumNews.js b/MLB/MLBv3RotoBallerPremiumNews.js index c9e82e7..31d9bd9 100644 --- a/MLB/MLBv3RotoBallerPremiumNews.js +++ b/MLB/MLBv3RotoBallerPremiumNews.js @@ -15,7 +15,7 @@ class MLBv3RotoBallerPremiumNewsClient extends BaseClient { } /// - /// Get Premium News by Date + /// Get Premium News - by Date /// /// The date of the news. Examples: 2017-JUL-31, 2017-SEP-01. getPremiumNewsByDatePromise(date){ @@ -25,7 +25,7 @@ class MLBv3RotoBallerPremiumNewsClient extends BaseClient { } /// - /// Get Premium News by Player + /// Get Premium News - by Player /// /// Unique FantasyData Player ID. Example:10000507. getPremiumNewsByPlayerPromise(playerid){ diff --git a/MLB/MLBv3RotoworldPlayerNews.js b/MLB/MLBv3RotoworldPlayerNews.js index dc08b43..e07622b 100644 --- a/MLB/MLBv3RotoworldPlayerNews.js +++ b/MLB/MLBv3RotoworldPlayerNews.js @@ -8,14 +8,14 @@ class MLBv3RotoworldPlayerNewsClient extends BaseClient { } /// - /// Get Rotoworld Player News (Recent) + /// Get Rotoworld Player News - by Recent /// - getRotoworldPlayerNewsRecentPromise(){ + getRotoworldPlayerNewsByRecentPromise(){ return this.GetPromise('/v3/mlb/rotoworld/{format}/RotoworldPlayerNews'); } /// - /// Get Rotoworld Player News by Date + /// Get Rotoworld Player News - by Date /// /// The date of the news. Examples: 2022-JUL-31, 2022-SEP-01. getRotoworldPlayerNewsByDatePromise(date){ diff --git a/MLB/MLBv3Scores.js b/MLB/MLBv3Scores.js index 4c1134e..68e3242 100644 --- a/MLB/MLBv3Scores.js +++ b/MLB/MLBv3Scores.js @@ -15,17 +15,17 @@ class MLBv3ScoresClient extends BaseClient { } /// - /// Get Current Season + /// Get Season - Current /// - getCurrentSeasonPromise(){ + getSeasonCurrentPromise(){ return this.GetPromise('/v3/mlb/scores/{format}/CurrentSeason'); } /// - /// Get Games by Date - Legacy + /// Get Games - by Date [Live & Final] /// /// The date of the game(s). Examples: 2017-JUL-31, 2017-SEP-01. - getGamesByDateLegacyPromise(date){ + getGamesByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/mlb/scores/{format}/GamesByDate/{date}', parameters); @@ -39,7 +39,7 @@ class MLBv3ScoresClient extends BaseClient { } /// - /// Get News by Date + /// Get News - by Date /// /// The date of the news. Examples: 2017-JUL-31, 2017-SEP-01. getNewsByDatePromise(date){ @@ -49,7 +49,7 @@ class MLBv3ScoresClient extends BaseClient { } /// - /// Get News by Player + /// Get News - by Player /// /// Unique FantasyData Player ID. Example:10000507. getNewsByPlayerPromise(playerid){ @@ -59,44 +59,44 @@ class MLBv3ScoresClient extends BaseClient { } /// - /// Get Player Details by Active - Legacy + /// Get Player Details - by Active /// - getPlayerDetailsByActiveLegacyPromise(){ + getPlayerDetailsByActivePromise(){ return this.GetPromise('/v3/mlb/scores/{format}/Players'); } /// - /// Get Player Details by Free Agents - Legacy + /// Get Player Details - by Free Agents /// - getPlayerDetailsByFreeAgentsLegacyPromise(){ + getPlayerDetailsByFreeAgentsPromise(){ return this.GetPromise('/v3/mlb/scores/{format}/FreeAgents'); } /// - /// Get Player Details by Player - Legacy + /// Get Player Details - by Player /// /// Unique FantasyData Player ID. Example:10000507. - getPlayerDetailsByPlayerLegacyPromise(playerid){ + getPlayerDetailsByPlayerPromise(playerid){ var parameters = {}; parameters['playerid']=playerid; return this.GetPromise('/v3/mlb/scores/{format}/Player/{playerid}', parameters); } /// - /// Get Players by Team - Legacy + /// Get Players Details - by Team /// /// The abbreviation of the requested team. Examples: SF, NYY. - getPlayersByTeamLegacyPromise(team){ + getPlayersDetailsByTeamPromise(team){ var parameters = {}; parameters['team']=team; return this.GetPromise('/v3/mlb/scores/{format}/Players/{team}', parameters); } /// - /// Get Schedules - Legacy + /// Get Schedules /// /// Year of the season (with optional season type). Examples: 2018, 2018PRE, 2018POST, 2018STAR, 2019, etc. - getSchedulesLegacyPromise(season){ + getSchedulesPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/mlb/scores/{format}/Games/{season}', parameters); @@ -120,10 +120,10 @@ class MLBv3ScoresClient extends BaseClient { } /// - /// Get Team Game Stats by Date + /// Get Team Game Stats - by Date [Live & Final] /// /// The date of the game(s). Examples: 2017-JUL-31, 2017-SEP-01. - getTeamGameStatsByDatePromise(date){ + getTeamGameStatsByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/mlb/scores/{format}/TeamGameStatsByDate/{date}', parameters); @@ -140,21 +140,21 @@ class MLBv3ScoresClient extends BaseClient { } /// - /// Get Teams (Active) + /// Get Team Profiles - by Active /// - getTeamsActivePromise(){ + getTeamProfilesByActivePromise(){ return this.GetPromise('/v3/mlb/scores/{format}/teams'); } /// - /// Get Teams (All) + /// Get Team Profiles - All /// - getTeamsAllPromise(){ + getTeamProfilesAllPromise(){ return this.GetPromise('/v3/mlb/scores/{format}/AllTeams'); } /// - /// Get Team Game Logs By Season + /// Get Team Game Logs - by Season /// /// Season to get games from. Example 2019POST, 2020 /// Unique ID of team. Example 12 @@ -168,49 +168,99 @@ class MLBv3ScoresClient extends BaseClient { } /// - /// Get Scores by Date + /// Get Games (Basic) - by Date [Live & Final] /// /// The date of the game(s). Examples: 2017-JUL-31, 2017-SEP-01. - getScoresByDatePromise(date){ + getGamesBasicByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/mlb/scores/{format}/ScoresBasic/{date}', parameters); } /// - /// Get Players by Team + /// Get Player Profiles (Basic) - by Team /// /// The abbreviation of the requested team. Examples: SF, NYY. - getPlayersByTeamPromise(team){ + getPlayerProfilesBasicByTeamPromise(team){ var parameters = {}; parameters['team']=team; return this.GetPromise('/v3/mlb/scores/{format}/PlayersBasic/{team}', parameters); } /// - /// Get Schedules + /// Get Schedules (Basic) /// /// Year of the season (with optional season type). Examples: 2018, 2018PRE, 2018POST, 2018STAR, 2019, etc. - getSchedulesPromise(season){ + getSchedulesBasicPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/mlb/scores/{format}/SchedulesBasic/{season}', parameters); } /// - /// Get Players by Active + /// Get Player Details - by Active /// - getPlayersByActivePromise(){ + getPlayerDetailsByActive_1459Promise(){ return this.GetPromise('/v3/mlb/scores/{format}/PlayersByActive'); } /// - /// Get Players by Free Agent + /// Get Player Details - by Free Agents /// - getPlayersByFreeAgentPromise(){ + getPlayerDetailsByFreeAgents_1460Promise(){ return this.GetPromise('/v3/mlb/scores/{format}/PlayersByFreeAgents'); } + /// + /// Get Team Profiles - by Season + /// + /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. + getTeamProfilesBySeasonPromise(season){ + var parameters = {}; + parameters['season']=season; + return this.GetPromise('/v3/mlb/scores/{format}/teams/{season}', parameters); + } + + /// + /// Get Transactions + /// + /// The date of the news. Examples: 2015-JUL-31, 2015-SEP-01. + getTransactionsPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/mlb/scores/{format}/TransactionsByDate/{date}', parameters); + } + + /// + /// Get Games - by Date [Final] + /// + /// The date of the game(s). Examples: 2017-JUL-31, 2017-SEP-01. + getGamesByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/mlb/scores/{format}/GamesByDateFinal/{date}', parameters); + } + + /// + /// Get Games (Basic) - by Date [Final] + /// + /// The date of the game(s). Examples: 2017-JUL-31, 2017-SEP-01. + getGamesBasicByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/mlb/scores/{format}/ScoresBasicFinal/{date}', parameters); + } + + /// + /// Get Team Game Stats - by Date [Final] + /// + /// The date of the game(s). Examples: 2017-JUL-31, 2017-SEP-01. + getTeamGameStatsByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/mlb/scores/{format}/TeamGameStatsByDateFinal/{date}', parameters); + } + } module.exports = MLBv3ScoresClient; diff --git a/MLB/MLBv3Stats.js b/MLB/MLBv3Stats.js index 471c620..4ecaf23 100644 --- a/MLB/MLBv3Stats.js +++ b/MLB/MLBv3Stats.js @@ -27,31 +27,31 @@ class MLBv3StatsClient extends BaseClient { } /// - /// Get Box Score + /// Get Box Score [Live & Final] /// /// The GameID of an MLB game. GameIDs can be found in the Games API. Valid entries are 14620 or 16905 - getBoxScorePromise(gameid){ + getBoxScoreLiveFinalPromise(gameid){ var parameters = {}; parameters['gameid']=gameid; return this.GetPromise('/v3/mlb/stats/{format}/BoxScore/{gameid}', parameters); } /// - /// Get Box Scores by Date + /// Get Box Scores - by Date [Live & Final] /// /// The date of the game(s). Examples: 2017-JUL-31, 2017-SEP-01. - getBoxScoresByDatePromise(date){ + getBoxScoresByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/mlb/stats/{format}/BoxScores/{date}', parameters); } /// - /// Get Box Scores by Date Delta + /// Get Box Scores Delta - by Date /// /// The date of the game(s). Examples: 2017-JUL-31, 2017-SEP-01. /// Only returns player statistics that have changed in the last X minutes. You specify how many minutes in time to go back. Valid entries are: 1, 2 ... all. - getBoxScoresByDateDeltaPromise(date, minutes){ + getBoxScoresDeltaByDatePromise(date, minutes){ var parameters = {}; parameters['date']=date; parameters['minutes']=minutes; @@ -59,14 +59,14 @@ class MLBv3StatsClient extends BaseClient { } /// - /// Get Current Season + /// Get Season Current /// - getCurrentSeasonPromise(){ + getSeasonCurrentPromise(){ return this.GetPromise('/v3/mlb/stats/{format}/CurrentSeason'); } /// - /// Get DFS Slates by Date + /// Get DFS Slates - by Date /// /// The date of the slates. Examples: 2017-JUL-31, 2017-SEP-01. getDFSSlatesByDatePromise(date){ @@ -76,10 +76,10 @@ class MLBv3StatsClient extends BaseClient { } /// - /// Get Games by Date + /// Get Games - by Date [Live & Final] /// /// The date of the game(s). Examples: 2017-JUL-31, 2017-SEP-01. - getGamesByDatePromise(date){ + getGamesByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/mlb/stats/{format}/GamesByDate/{date}', parameters); @@ -93,7 +93,7 @@ class MLBv3StatsClient extends BaseClient { } /// - /// Get News by Date + /// Get News - by Date /// /// The date of the news. Examples: 2017-JUL-31, 2017-SEP-01. getNewsByDatePromise(date){ @@ -103,7 +103,7 @@ class MLBv3StatsClient extends BaseClient { } /// - /// Get News by Player + /// Get News - by Player /// /// Unique FantasyData Player ID. Example:10000507. getNewsByPlayerPromise(playerid){ @@ -113,21 +113,21 @@ class MLBv3StatsClient extends BaseClient { } /// - /// Get Player Details by Active + /// Get Player Details - by Active /// getPlayerDetailsByActivePromise(){ return this.GetPromise('/v3/mlb/stats/{format}/Players'); } /// - /// Get Player Details by Free Agents + /// Get Player Details - by Free Agents /// getPlayerDetailsByFreeAgentsPromise(){ return this.GetPromise('/v3/mlb/stats/{format}/FreeAgents'); } /// - /// Get Player Details by Player + /// Get Player Details - by Player /// /// Unique FantasyData Player ID. Example:10000507. getPlayerDetailsByPlayerPromise(playerid){ @@ -137,17 +137,17 @@ class MLBv3StatsClient extends BaseClient { } /// - /// Get Player Game Stats by Date + /// Get Player Game Stats - by Date [Live & Final] /// /// The date of the game(s). Examples: 2017-JUL-31, 2017-SEP-01. - getPlayerGameStatsByDatePromise(date){ + getPlayerGameStatsByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/mlb/stats/{format}/PlayerGameStatsByDate/{date}', parameters); } /// - /// Get Player Game Stats by Player + /// Get Player Game Stats - by Player /// /// The date of the game(s). Examples: 2017-JUL-31, 2017-SEP-01. /// Unique FantasyData Player ID. Example:10000507. @@ -159,20 +159,20 @@ class MLBv3StatsClient extends BaseClient { } /// - /// Get Player Season Away Stats + /// Get Player Season Stats - by Away /// /// Year of the season. Examples: 2017, 2018. - getPlayerSeasonAwayStatsPromise(season){ + getPlayerSeasonStatsByAwayPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/mlb/stats/{format}/PlayerSeasonAwayStats/{season}', parameters); } /// - /// Get Player Season Home Stats + /// Get Player Season Stats - by Home /// /// Year of the season. Examples: 2017, 2018. - getPlayerSeasonHomeStatsPromise(season){ + getPlayerSeasonStatsByHomePromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/mlb/stats/{format}/PlayerSeasonHomeStats/{season}', parameters); @@ -201,7 +201,7 @@ class MLBv3StatsClient extends BaseClient { } /// - /// Get Player Season Stats By Player + /// Get Player Season Stats - by Player /// /// Year of the season. Examples: 2017, 2018. /// Unique FantasyData Player ID. Example:10000507. @@ -213,7 +213,7 @@ class MLBv3StatsClient extends BaseClient { } /// - /// Get Player Season Stats by Team + /// Get Player Season Stats - by Team /// /// Year of the season. Examples: 2017, 2018. /// The abbreviation of the requested team. Examples: SF, NYY. @@ -225,7 +225,7 @@ class MLBv3StatsClient extends BaseClient { } /// - /// Get Player Season Stats Split By Team + /// Get Player Season Stats Split - by Team /// /// Year of the season. Examples: 2017, 2018. getPlayerSeasonStatsSplitByTeamPromise(season){ @@ -235,7 +235,7 @@ class MLBv3StatsClient extends BaseClient { } /// - /// Get Players by Team + /// Get Players - by Team /// /// The abbreviation of the requested team. Examples: SF, NYY. getPlayersByTeamPromise(team){ @@ -272,10 +272,10 @@ class MLBv3StatsClient extends BaseClient { } /// - /// Get Team Game Stats by Date + /// Get Team Game Stats - by Date [Live & Final] /// /// The date of the game(s). Examples: 2017-JUL-31, 2017-SEP-01. - getTeamGameStatsByDatePromise(date){ + getTeamGameStatsByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/mlb/stats/{format}/TeamGameStatsByDate/{date}', parameters); @@ -304,21 +304,21 @@ class MLBv3StatsClient extends BaseClient { } /// - /// Get Teams (Active) + /// Get Team Profiles - by Active /// - getTeamsActivePromise(){ + getTeamProfilesByActivePromise(){ return this.GetPromise('/v3/mlb/stats/{format}/teams'); } /// - /// Get Teams (All) + /// Get Team Profiles - All /// - getTeamsAllPromise(){ + getTeamProfilesAllPromise(){ return this.GetPromise('/v3/mlb/stats/{format}/AllTeams'); } /// - /// Get Player Game Logs By Season + /// Get Player Game Logs - by Season /// /// Season to get games from. Example 2019POST, 2020 /// Unique FantasyData Player ID. Example:10001365. @@ -332,7 +332,7 @@ class MLBv3StatsClient extends BaseClient { } /// - /// Get Team Game Logs By Season + /// Get Team Game Logs - by Season /// /// Season to get games from. Example 2019POST, 2020 /// Unique ID of team. Example 12 @@ -345,6 +345,56 @@ class MLBv3StatsClient extends BaseClient { return this.GetPromise('/v3/mlb/stats/{format}/TeamGameStatsBySeason/{season}/{teamid}/{numberofgames}', parameters); } + /// + /// Get Box Score [Final] + /// + /// The GameID of an MLB game. GameIDs can be found in the Games API. Valid entries are 14620 or 16905 + getBoxScoreFinalPromise(gameid){ + var parameters = {}; + parameters['gameid']=gameid; + return this.GetPromise('/v3/mlb/stats/{format}/BoxScoreFinal/{gameid}', parameters); + } + + /// + /// Get Box Scores - by Date [Final] + /// + /// The date of the game(s). Examples: 2017-JUL-31, 2017-SEP-01. + getBoxScoresByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/mlb/stats/{format}/BoxScoresFinal/{date}', parameters); + } + + /// + /// Get Player Game Stats - by Date [Final] + /// + /// The date of the game(s). Examples: 2017-JUL-31, 2017-SEP-01. + getPlayerGameStatsByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/mlb/stats/{format}/PlayerGameStatsByDateFinal/{date}', parameters); + } + + /// + /// Get Team Game Stats - by Date [Final] + /// + /// The date of the game(s). Examples: 2017-JUL-31, 2017-SEP-01. + getTeamGameStatsByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/mlb/stats/{format}/TeamGameStatsByDateFinal/{date}', parameters); + } + + /// + /// Get Fantasy Points - by Date + /// + /// The date of the game(s). Examples: 2017-JUL-31, 2017-SEP-01. + getFantasyPointsByDatePromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/mlb/stats/{format}/FantasyGameStatsByDate/{date}', parameters); + } + } module.exports = MLBv3StatsClient; diff --git a/MMA/MMAv3Odds.js b/MMA/MMAv3Odds.js index c149707..d997952 100644 --- a/MMA/MMAv3Odds.js +++ b/MMA/MMAv3Odds.js @@ -28,14 +28,14 @@ class MMAv3OddsClient extends BaseClient { } /// - /// Get Sportsbooks (Active) + /// Get Sportsbooks - by Active /// - getSportsbooksActivePromise(){ + getSportsbooksByActivePromise(){ return this.GetPromise('/v3/mma/odds/{format}/ActiveSportsbooks'); } /// - /// Get Betting Events By Event + /// Get Betting Events - by Event /// /// The top level EventId for the event (i.e. UFC 250). Distinct from the BettingEventId. getBettingEventsByEventPromise(eventId){ @@ -55,11 +55,11 @@ class MMAv3OddsClient extends BaseClient { } /// - /// Get Betting Markets By Betting Event + /// Get Betting Markets - by Event /// /// The BettingEventId for which to pull all betting markets (includes outcomes/bets). /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. - getBettingMarketsByBettingEventPromise(bettingEventId, include){ + getBettingMarketsByEventPromise(bettingEventId, include){ var parameters = {}; parameters['bettingEventId']=bettingEventId; parameters['include']=include; @@ -67,7 +67,7 @@ class MMAv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by Market Type + /// Get Betting Markets - by Market Type /// /// The top level EventId for the event (i.e. UFC 250). Distinct from the BettingEventId. /// The BettingMarketTypeId of the desired market types to pull. See BettingMetaData endpoint for all of the types. @@ -88,7 +88,7 @@ class MMAv3OddsClient extends BaseClient { } /// - /// Get Betting Fighter Props By Event + /// Get Betting Fighter Props - by Event /// /// The top level EventId for the event (i.e. UFC 250). Distinct from the BettingEventId. /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. @@ -100,9 +100,9 @@ class MMAv3OddsClient extends BaseClient { } /// - /// Get Upcoming Betting Events + /// Get Betting Events - Upcoming /// - getUpcomingBettingEventsPromise(){ + getBettingEventsUpcomingPromise(){ return this.GetPromise('/v3/mma/odds/{format}/UpcomingBettingEvents'); } diff --git a/MMA/MMAv3Scores.js b/MMA/MMAv3Scores.js index a192f33..000df14 100644 --- a/MMA/MMAv3Scores.js +++ b/MMA/MMAv3Scores.js @@ -18,19 +18,19 @@ class MMAv3ScoresClient extends BaseClient { } /// - /// Get Fighter + /// Get Fighter Profile - By Fighter /// /// Each fighter has a unique ID assigned by FantasyData. Fighter IDs can be determined by pulling player related data. Example: 140000098 - getFighterPromise(fighterid){ + getFighterProfileByFighterPromise(fighterid){ var parameters = {}; parameters['fighterid']=fighterid; return this.GetPromise('/v3/mma/scores/{format}/Fighter/{fighterid}', parameters); } /// - /// Get Fighters + /// Get Fighter Profiles - All /// - getFightersPromise(){ + getFighterProfilesAllPromise(){ return this.GetPromise('/v3/mma/scores/{format}/Fighters'); } @@ -42,17 +42,24 @@ class MMAv3ScoresClient extends BaseClient { } /// - /// Get Schedule + /// Get Schedules /// /// The name of the league. Examples: UFC, etc /// Year of the season. Examples: 2019, 2020, etc. - getSchedulePromise(league, season){ + getSchedulesPromise(league, season){ var parameters = {}; parameters['league']=league; parameters['season']=season; return this.GetPromise('/v3/mma/scores/{format}/Schedule/{league}/{season}', parameters); } + /// + /// Get Fighter Profiles (Basic) - All + /// + getFighterProfilesBasicAllPromise(){ + return this.GetPromise('/v3/mma/scores/{format}/FightersBasic'); + } + } module.exports = MMAv3ScoresClient; diff --git a/MMA/MMAv3Stats.js b/MMA/MMAv3Stats.js index 6d855a8..7fe773f 100644 --- a/MMA/MMAv3Stats.js +++ b/MMA/MMAv3Stats.js @@ -18,10 +18,10 @@ class MMAv3StatsClient extends BaseClient { } /// - /// Get Fight + /// Get Fight [Live & Final] /// /// The unique ID of this fight. Examples: 1100, etc. - getFightPromise(fightid){ + getFightLiveFinalPromise(fightid){ var parameters = {}; parameters['fightid']=fightid; return this.GetPromise('/v3/mma/stats/{format}/Fight/{fightid}', parameters); @@ -38,9 +38,9 @@ class MMAv3StatsClient extends BaseClient { } /// - /// Get Fighters + /// Get Fighter Profiles - All /// - getFightersPromise(){ + getFighterProfilesAllPromise(){ return this.GetPromise('/v3/mma/stats/{format}/Fighters'); } @@ -52,17 +52,47 @@ class MMAv3StatsClient extends BaseClient { } /// - /// Get Schedule + /// Get Schedules /// /// The name of the league. Examples: UFC, etc /// Year of the season. Examples: 2019, 2020, etc. - getSchedulePromise(league, season){ + getSchedulesPromise(league, season){ var parameters = {}; parameters['league']=league; parameters['season']=season; return this.GetPromise('/v3/mma/stats/{format}/Schedule/{league}/{season}', parameters); } + /// + /// Get Fight [Final] + /// + /// The unique ID of this fight. Examples: 1100, etc. + getFightFinalPromise(fightid){ + var parameters = {}; + parameters['fightid']=fightid; + return this.GetPromise('/v3/mma/stats/{format}/FightFinal/{fightid}', parameters); + } + + /// + /// Get Fight (Basic) [Live & Final] + /// + /// The unique ID of this fight. Examples: 1100, etc. + getFightBasicLiveFinalPromise(fightid){ + var parameters = {}; + parameters['fightid']=fightid; + return this.GetPromise('/v3/mma/stats/{format}/FightBasic/{fightid}', parameters); + } + + /// + /// Get Fight (Basic) [Final] + /// + /// The unique ID of this fight. Examples: 1100, etc. + getFightBasicFinalPromise(fightid){ + var parameters = {}; + parameters['fightid']=fightid; + return this.GetPromise('/v3/mma/stats/{format}/FightBasicFinal/{fightid}', parameters); + } + } module.exports = MMAv3StatsClient; diff --git a/NBA/NBAv2.js b/NBA/NBAv2.js index 9def40e..c8926a0 100644 --- a/NBA/NBAv2.js +++ b/NBA/NBAv2.js @@ -15,31 +15,31 @@ class NBAv2Client extends BaseClient { } /// - /// Get Box Score + /// Get Box Score [Live & Final] /// /// The GameID of an NBA game. GameIDs can be found in the Games API. Valid entries are 14620 or 16905 - getBoxScorePromise(gameid){ + getBoxScoreLiveFinalPromise(gameid){ var parameters = {}; parameters['gameid']=gameid; return this.GetPromise('/nba/v2/{format}/BoxScore/{gameid}', parameters); } /// - /// Get Box Scores by Date + /// Get Box Scores - by Date [Live & Final] /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. - getBoxScoresByDatePromise(date){ + getBoxScoresByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/nba/v2/{format}/BoxScores/{date}', parameters); } /// - /// Get Box Scores by Date Delta + /// Get Box Scores Delta - by Date /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. /// Only returns player statistics that have changed in the last X minutes. You specify how many minutes in time to go back. Valid entries are: 1 or 2. - getBoxScoresByDateDeltaPromise(date, minutes){ + getBoxScoresDeltaByDatePromise(date, minutes){ var parameters = {}; parameters['date']=date; parameters['minutes']=minutes; @@ -47,17 +47,17 @@ class NBAv2Client extends BaseClient { } /// - /// Get Current Season + /// Get Season Current /// - getCurrentSeasonPromise(){ + getSeasonCurrentPromise(){ return this.GetPromise('/nba/v2/{format}/CurrentSeason'); } /// - /// Get Games by Date + /// Get Games - by Date [Live & Final] /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. - getGamesByDatePromise(date){ + getGamesByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/nba/v2/{format}/GamesByDate/{date}', parameters); @@ -71,7 +71,7 @@ class NBAv2Client extends BaseClient { } /// - /// Get News by Date + /// Get News - by Date /// /// The date of the news. Examples: 2015-JUL-31, 2015-SEP-01. getNewsByDatePromise(date){ @@ -81,7 +81,7 @@ class NBAv2Client extends BaseClient { } /// - /// Get News by Player + /// Get News - by Player /// /// Unique FantasyData Player ID. Example:10000507. getNewsByPlayerPromise(playerid){ @@ -91,21 +91,21 @@ class NBAv2Client extends BaseClient { } /// - /// Get Player Details by Active + /// Get Player Details - by Active /// getPlayerDetailsByActivePromise(){ return this.GetPromise('/nba/v2/{format}/Players'); } /// - /// Get Player Details by Free Agent + /// Get Player Details - by Free Agent /// getPlayerDetailsByFreeAgentPromise(){ return this.GetPromise('/nba/v2/{format}/FreeAgents'); } /// - /// Get Player Details by Player + /// Get Player Details - by Player /// /// Unique FantasyData Player ID. Example:20000571. getPlayerDetailsByPlayerPromise(playerid){ @@ -115,17 +115,17 @@ class NBAv2Client extends BaseClient { } /// - /// Get Player Game Stats by Date + /// Get Player Game Stats - by Date [Live & Final] /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. - getPlayerGameStatsByDatePromise(date){ + getPlayerGameStatsByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/nba/v2/{format}/PlayerGameStatsByDate/{date}', parameters); } /// - /// Get Player Game Stats by Player + /// Get Player Game Stats - by Player /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. /// Unique FantasyData Player ID. Example:20000571. @@ -147,7 +147,7 @@ class NBAv2Client extends BaseClient { } /// - /// Get Player Season Stats By Player + /// Get Player Season Stats - by Player /// /// Year of the season. Examples: 2015, 2016. /// Unique FantasyData Player ID. Example:20000571. @@ -159,7 +159,7 @@ class NBAv2Client extends BaseClient { } /// - /// Get Player Season Stats by Team + /// Get Player Season Stats - by Team /// /// Year of the season. Examples: 2015, 2016. /// The abbreviation of the requested team. Examples: SF, NYY. @@ -171,17 +171,17 @@ class NBAv2Client extends BaseClient { } /// - /// Get Players by Team + /// Get Players Details - by Team /// /// The abbreviation of the requested team. Examples: SF, NYY. - getPlayersByTeamPromise(team){ + getPlayersDetailsByTeamPromise(team){ var parameters = {}; parameters['team']=team; return this.GetPromise('/nba/v2/{format}/Players/{team}', parameters); } /// - /// Get Projected Player Game Stats by Date (w/ Injuries, DFS Salaries) + /// Get Projected Player Game Stats - by Date /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. getProjectedPlayerGameStatsByDatePromise(date){ @@ -191,7 +191,7 @@ class NBAv2Client extends BaseClient { } /// - /// Get Projected Player Game Stats by Player (w/ Injuries, DFS Salaries) + /// Get Projected Player Game Stats - by Player /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. /// Unique FantasyData Player ID. Example:20000571. @@ -230,10 +230,10 @@ class NBAv2Client extends BaseClient { } /// - /// Get Team Game Stats by Date + /// Get Team Game Stats - by Date [Live & Final] /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. - getTeamGameStatsByDatePromise(date){ + getTeamGameStatsByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/nba/v2/{format}/TeamGameStatsByDate/{date}', parameters); @@ -260,14 +260,14 @@ class NBAv2Client extends BaseClient { } /// - /// Get Teams (Active) + /// Get Teams - by Active /// - getTeamsActivePromise(){ + getTeamsByActivePromise(){ return this.GetPromise('/nba/v2/{format}/teams'); } /// - /// Get Teams (All) + /// Get Teams - All /// getTeamsAllPromise(){ return this.GetPromise('/nba/v2/{format}/AllTeams'); diff --git a/NBA/NBAv3Odds.js b/NBA/NBAv3Odds.js index 8b1d5a6..5bf9228 100644 --- a/NBA/NBAv3Odds.js +++ b/NBA/NBAv3Odds.js @@ -8,7 +8,7 @@ class NBAv3OddsClient extends BaseClient { } /// - /// Get In-Game Odds by Date + /// Get In-Game Odds - by Date /// /// The date of the game(s). Examples: 2018-06-20, 2018-06-23. getInGameOddsByDatePromise(date){ @@ -28,7 +28,7 @@ class NBAv3OddsClient extends BaseClient { } /// - /// Get Pre-Game Odds by Date + /// Get Pre-Game Odds - by Date /// /// The date of the game(s). Examples: 2018-06-20, 2018-06-23. getPreGameOddsByDatePromise(date){ @@ -48,7 +48,7 @@ class NBAv3OddsClient extends BaseClient { } /// - /// Get Generated Player Props by Date + /// Get Generated Player Props - by Date /// /// The date of the game(s). Examples: 2018-06-20, 2018-06-23. getGeneratedPlayerPropsByDatePromise(date){ @@ -58,7 +58,7 @@ class NBAv3OddsClient extends BaseClient { } /// - /// Get Generated Player Props by Player + /// Get Generated Player Props - by Player /// /// The date of the game(s). Examples: 2018-06-20, 2018-06-23. /// Unique FantasyData Player ID. Example:20000571 @@ -70,7 +70,7 @@ class NBAv3OddsClient extends BaseClient { } /// - /// Get Generated Player Props by Team + /// Get Generated Player Props - by Team /// /// The date of the game(s). Examples: 2018-06-20, 2018-06-23. /// The abbreviation of the requested team. Examples: PHI, MIN, DET, etc. @@ -82,7 +82,7 @@ class NBAv3OddsClient extends BaseClient { } /// - /// Get Period Game Odds by Date + /// Get Period Game Odds - by Date /// /// The date of the game(s). Examples: 2018-06-20, 2018-06-23. getPeriodGameOddsByDatePromise(date){ @@ -102,7 +102,7 @@ class NBAv3OddsClient extends BaseClient { } /// - /// Get Betting Events by Date + /// Get Betting Events - by Date /// /// The date of the game(s). Examples: 2020-02-15, 2020-02-23. getBettingEventsByDatePromise(date){ @@ -112,7 +112,7 @@ class NBAv3OddsClient extends BaseClient { } /// - /// Get Betting Events by Season + /// Get Betting Events - by Season /// /// Year of the season (with optional season type). Examples: 2020, 2020PRE, 2020POST, 2020STAR, 2021, etc. getBettingEventsBySeasonPromise(season){ @@ -132,7 +132,7 @@ class NBAv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by Event + /// Get Betting Markets - by Event /// /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). Valid entries include: 134, 155, etc. /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. @@ -144,7 +144,7 @@ class NBAv3OddsClient extends BaseClient { } /// - /// Get Betting Futures by Season + /// Get Betting Futures - by Season /// /// Year of the season Examples: 2020, 2021, etc getBettingFuturesBySeasonPromise(season){ @@ -154,7 +154,7 @@ class NBAv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by Market Type + /// Get Betting Markets - by Market Type /// /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). Valid entries include: 134, 155, etc. /// The Market Type ID of the desired MarketTypes to pull. Some common types include: 1 for `Game Lines` 2 for `Player Props` 3 for `Team Props` 6 for `Game Props` @@ -168,11 +168,11 @@ class NBAv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by GameID + /// Get Betting Markets - by Game /// /// The GameID of the desired game for which to pull all betting markets (includes outcomes/bets). Valid entries include: 14814 /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. - getBettingMarketsByGameIDPromise(gameID, include){ + getBettingMarketsByGamePromise(gameID, include){ var parameters = {}; parameters['gameID']=gameID; parameters['include']=include; @@ -180,7 +180,7 @@ class NBAv3OddsClient extends BaseClient { } /// - /// Get Betting Trends by Matchup + /// Get Betting Trends - by Matchup /// /// The abbreviation of the requested team. Examples: PHI, MIN, DET, etc. /// The abbreviation of the requested opponent. Examples: PHI, MIN, DET, etc. @@ -192,7 +192,7 @@ class NBAv3OddsClient extends BaseClient { } /// - /// Get Betting Trends by Team + /// Get Betting Trends - by Team /// /// The abbreviation of the requested team. Examples: PHI, MIN, DET, etc. getBettingTrendsByTeamPromise(team){ @@ -209,14 +209,14 @@ class NBAv3OddsClient extends BaseClient { } /// - /// Get Sportsbooks (Active) + /// Get Sportsbooks - by Active /// - getSportsbooksActivePromise(){ + getSportsbooksByActivePromise(){ return this.GetPromise('/v3/nba/odds/{format}/ActiveSportsbooks'); } /// - /// Get Betting Results By Market + /// Get Betting Results - by Market /// /// The MarketId of the desired market for which to pull all outcomes/bets. Valid entries include: 406451, 404168, etc. getBettingResultsByMarketPromise(marketId){ @@ -226,37 +226,203 @@ class NBAv3OddsClient extends BaseClient { } /// - /// Get Betting Splits By BettingMarketId + /// Get Betting Splits - by Betting Market /// /// The MarketId of the desired market for which to pull splits. MarketIds are pulled from the Betting Markets endpoints. - getBettingSplitsByBettingMarketIdPromise(marketId){ + getBettingSplitsByBettingMarketPromise(marketId){ var parameters = {}; parameters['marketId']=marketId; return this.GetPromise('/v3/nba/odds/{format}/BettingSplitsByMarketId/{marketId}', parameters); } /// - /// Get Betting Splits By GameID + /// Get Betting Splits - by Game /// /// The ID of the game for which you want to receive splits for. GameIds are pulled from the Schedules and Games by Date endpoints. - getBettingSplitsByGameIDPromise(gameId){ + getBettingSplitsByGamePromise(gameId){ var parameters = {}; parameters['gameId']=gameId; return this.GetPromise('/v3/nba/odds/{format}/BettingSplitsByGameId/{gameId}', parameters); } /// - /// Get Betting Player Props by GameID + /// Get Betting Player Props - by Game /// /// The unique GameID of the game in question. /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. - getBettingPlayerPropsByGameIDPromise(gameId, include){ + getBettingPlayerPropsByGamePromise(gameId, include){ var parameters = {}; parameters['gameId']=gameId; parameters['include']=include; return this.GetPromise('/v3/nba/odds/{format}/BettingPlayerPropsByGameID/{gameId}', parameters); } + /// + /// Get Betting Futures - by Season [Sportsbook Group] + /// + /// Year of the season Examples: 2020, 2021, etc + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingFuturesBySeasonSportsbookGroupPromise(season, sportsbookgroup){ + var parameters = {}; + parameters['season']=season; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nba/odds/{format}/BettingFuturesBySeason/{season}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Market [Sportsbook Group] + /// + /// The MarketId of the desired market for which to pull all outcomes/bets. Valid entries include: 421, 1041, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingMarketSportsbookGroupPromise(marketId, sportsbookgroup){ + var parameters = {}; + parameters['marketId']=marketId; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nba/odds/{format}/BettingMarket/{marketId}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Event [Sportsbook Group] + /// + /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). Valid entries include: 134, 155, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingMarketsByEventSportsbookGroupPromise(eventId, sportsbookgroup, include){ + var parameters = {}; + parameters['eventId']=eventId; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/nba/odds/{format}/BettingMarketsByEvent/{eventId}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Game [Sportsbook Group] + /// + /// The GameID of the desired game for which to pull all betting markets (includes outcomes/bets). Valid entries include: 14814 + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingMarketsByGameSportsbookGroupPromise(gameID, sportsbookgroup, include){ + var parameters = {}; + parameters['gameID']=gameID; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/nba/odds/{format}/BettingMarketsByGameID/{gameID}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Market Type [Sportsbook Group] + /// + /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). Valid entries include: 134, 155, etc. + /// The Market Type ID of the desired MarketTypes to pull. Some common types include: 1 for `Game Lines` 2 for `Player Props` 3 for `Team Props` 6 for `Game Props` + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingMarketsByMarketTypeSportsbookGroupPromise(eventId, marketTypeID, sportsbookgroup, include){ + var parameters = {}; + parameters['eventId']=eventId; + parameters['marketTypeID']=marketTypeID; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/nba/odds/{format}/BettingMarketsByMarketType/{eventId}/{marketTypeID}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Player Props - by Game [Sportsbook Group] + /// + /// The unique GameID of the game in question. + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingPlayerPropsByGameSportsbookGroupPromise(gameId, sportsbookgroup, include){ + var parameters = {}; + parameters['gameId']=gameId; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/nba/odds/{format}/BettingPlayerPropsByGameID/{gameId}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Results - by Market [Sportsbook Group] + /// + /// The MarketId of the desired market for which to pull all outcomes/bets. Valid entries include: 406451, 404168, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingResultsByMarketSportsbookGroupPromise(marketId, sportsbookgroup){ + var parameters = {}; + parameters['marketId']=marketId; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nba/odds/{format}/BettingResultsByMarket/{marketId}/{sportsbookgroup}', parameters); + } + + /// + /// Get In-Game Odds - by Date [Sportsbook Group] + /// + /// The date of the game(s). Examples: 2018-06-20, 2018-06-23. + /// The name of the Sportsbook grouping. Examples: G1100 + getInGameOddsByDateSportsbookGroupPromise(date, sportsbookgroup){ + var parameters = {}; + parameters['date']=date; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nba/odds/{format}/InGameOddsByDate/{date}/{sportsbookgroup}', parameters); + } + + /// + /// Get In-Game Odds Line Movement [Sportsbook Group] + /// + /// The GameID of an NBA game. GameIDs can be found in the Games API. Valid entries are 12780 or 12781 + /// The name of the Sportsbook grouping. Examples: G1100 + getInGameOddsLineMovementSportsbookGroupPromise(gameid, sportsbookgroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nba/odds/{format}/InGameLineMovement/{gameid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds - by Date [Sportsbook Group] + /// + /// The date of the game(s). Examples: 2018-06-20, 2018-06-23. + /// The name of the Sportsbook grouping. Examples: G1100 + getPreGameAndPeriodGameOddsByDateSportsbookGroupPromise(date, sportsbookgroup){ + var parameters = {}; + parameters['date']=date; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nba/odds/{format}/PreGameOddsByDate/{date}/{sportsbookgroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds Line Movement [Sportsbook Group] + /// + /// The GameID of an NBA game. GameIDs can be found in the Games API. Valid entries are 12780 or 12781 + /// The name of the Sportsbook grouping. Examples: G1100 + getPreGameAndPeriodGameOddsLineMovementSportsbookGroupPromise(gameid, sportsbookgroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nba/odds/{format}/PreGameOddsLineMovement/{gameid}/{sportsbookgroup}', parameters); + } + + /// + /// Get In-Game Odds Line Movement with Resulting [Sportsbook Group] + /// + /// The GameID of an NBA game. GameIDs can be found in the Games API. Valid entries are 12780 or 12781 + /// The name of the Sportsbook grouping. Examples: G1100 + getInGameOddsLineMovementWithResultingSportsbookGroupPromise(gameid, sportsbookgroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nba/odds/{format}/InGameLineMovementWithResulting/{gameid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds Line Movement with Resulting [Sportsbook Group] + /// + /// The GameID of an NBA game. GameIDs can be found in the Games API. Valid entries are 12780 or 12781 + /// The name of the Sportsbook grouping. Examples: G1100 + getPreGameAndPeriodGameOddsLineMovementWithResultingSportsbookGroupPromise(gameid, sportsbookgroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nba/odds/{format}/PreGameOddsLineMovementWithResulting/{gameid}/{sportsbookgroup}', parameters); + } + } module.exports = NBAv3OddsClient; diff --git a/NBA/NBAv3PlayByPlay.js b/NBA/NBAv3PlayByPlay.js index 83031bb..b6705ab 100644 --- a/NBA/NBAv3PlayByPlay.js +++ b/NBA/NBAv3PlayByPlay.js @@ -8,10 +8,10 @@ class NBAv3PlayByPlayClient extends BaseClient { } /// - /// Get Play By Play + /// Get Play By Play [Live & Final] /// /// The GameID of an NBA game. GameIDs can be found in the Games API. Valid entries are 14620, 16905, etc. - getPlayByPlayPromise(gameid){ + getPlayByPlayLiveFinalPromise(gameid){ var parameters = {}; parameters['gameid']=gameid; return this.GetPromise('/v3/nba/pbp/{format}/PlayByPlay/{gameid}', parameters); @@ -29,6 +29,16 @@ class NBAv3PlayByPlayClient extends BaseClient { return this.GetPromise('/v3/nba/pbp/{format}/PlayByPlayDelta/{date}/{minutes}', parameters); } + /// + /// Get Play By Play [Final] + /// + /// The GameID of an NBA game. GameIDs can be found in the Games API. Valid entries are 14620, 16905, etc. + getPlayByPlayFinalPromise(gameid){ + var parameters = {}; + parameters['gameid']=gameid; + return this.GetPromise('/v3/nba/pbp/{format}/PlayByPlayFinal/{gameid}', parameters); + } + } module.exports = NBAv3PlayByPlayClient; diff --git a/NBA/NBAv3Projections.js b/NBA/NBAv3Projections.js index a741f9d..c3db99f 100644 --- a/NBA/NBAv3Projections.js +++ b/NBA/NBAv3Projections.js @@ -8,7 +8,7 @@ class NBAv3ProjectionsClient extends BaseClient { } /// - /// Get DFS Slates by Date + /// Get DFS Slates - by Date /// /// The date of the game(s). Examples: 2017-DEC-01, 2018-FEB-15. getDFSSlatesByDatePromise(date){ @@ -18,7 +18,7 @@ class NBAv3ProjectionsClient extends BaseClient { } /// - /// Get Projected Player Game Stats by Date (w/ Injuries, DFS Salaries) + /// Get Projected Player Game Stats - by Date /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. getProjectedPlayerGameStatsByDatePromise(date){ @@ -28,7 +28,7 @@ class NBAv3ProjectionsClient extends BaseClient { } /// - /// Get Projected Player Game Stats by Player (w/ Injuries, DFS Salaries) + /// Get Projected Player Game Stats - by Player /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. /// Unique FantasyData Player ID. Example:20000571. @@ -50,7 +50,7 @@ class NBAv3ProjectionsClient extends BaseClient { } /// - /// Get Projected Player Season Stats by Player + /// Get Projected Player Season Stats - by Player /// /// Year of the season (with optional season type). Examples: 2018, 2019, etc. /// Unique FantasyData Player ID. Example:20000571. @@ -62,7 +62,7 @@ class NBAv3ProjectionsClient extends BaseClient { } /// - /// Get Projected Player Season Stats by Team + /// Get Projected Player Season Stats - by Team /// /// Year of the season (with optional season type). Examples: 2018, 2019, etc. /// The abbreviation of the requested team. Examples: MIA, PHI. @@ -74,7 +74,7 @@ class NBAv3ProjectionsClient extends BaseClient { } /// - /// Get Starting Lineups by Date + /// Get Starting Lineups - by Date /// /// The date of the game(s). Examples: 2021-OCT-12, 2021-DEC-09. getStartingLineupsByDatePromise(date){ @@ -84,9 +84,9 @@ class NBAv3ProjectionsClient extends BaseClient { } /// - /// Get Injured Players + /// Get Player Details - by Injured /// - getInjuredPlayersPromise(){ + getPlayerDetailsByInjuredPromise(){ return this.GetPromise('/v3/nba/projections/{format}/InjuredPlayers'); } diff --git a/NBA/NBAv3RotoBallerArticles.js b/NBA/NBAv3RotoBallerArticles.js index 5b10652..ace437a 100644 --- a/NBA/NBAv3RotoBallerArticles.js +++ b/NBA/NBAv3RotoBallerArticles.js @@ -15,7 +15,7 @@ class NBAv3RotoBallerArticlesClient extends BaseClient { } /// - /// Get RotoBaller Articles by Date + /// Get RotoBaller Articles - by Date /// /// The date of the news. Examples: 2017-JUL-31, 2017-SEP-01. getRotoBallerArticlesByDatePromise(date){ @@ -25,7 +25,7 @@ class NBAv3RotoBallerArticlesClient extends BaseClient { } /// - /// Get RotoBaller Articles by Player + /// Get RotoBaller Articles - by Player /// /// Unique FantasyData Player ID. Example:10000507. getRotoBallerArticlesByPlayerPromise(playerid){ diff --git a/NBA/NBAv3RotoBallerPremiumNews.js b/NBA/NBAv3RotoBallerPremiumNews.js index a992f5f..fd56a91 100644 --- a/NBA/NBAv3RotoBallerPremiumNews.js +++ b/NBA/NBAv3RotoBallerPremiumNews.js @@ -15,7 +15,7 @@ class NBAv3RotoBallerPremiumNewsClient extends BaseClient { } /// - /// Get Premium News by Date + /// Get Premium News - by Date /// /// The date of the news. Examples: 2017-JUL-31, 2017-SEP-01. getPremiumNewsByDatePromise(date){ @@ -25,7 +25,7 @@ class NBAv3RotoBallerPremiumNewsClient extends BaseClient { } /// - /// Get Premium News by Player + /// Get Premium News - by Player /// /// Unique FantasyData Player ID. Example:10000507. getPremiumNewsByPlayerPromise(playerid){ diff --git a/NBA/NBAv3RotoworldPlayerNews.js b/NBA/NBAv3RotoworldPlayerNews.js index c8faa54..32d6597 100644 --- a/NBA/NBAv3RotoworldPlayerNews.js +++ b/NBA/NBAv3RotoworldPlayerNews.js @@ -8,14 +8,14 @@ class NBAv3RotoworldPlayerNewsClient extends BaseClient { } /// - /// Get Rotoworld Player News (Recent) + /// Get Rotoworld Player News - by Recent /// - getRotoworldPlayerNewsRecentPromise(){ + getRotoworldPlayerNewsByRecentPromise(){ return this.GetPromise('/v3/nba/rotoworld/{format}/RotoworldPlayerNews'); } /// - /// Get Rotoworld Player News by Date + /// Get Rotoworld Player News - by Date /// /// The date of the news. Examples: 2022-JUL-31, 2022-SEP-01. getRotoworldPlayerNewsByDatePromise(date){ diff --git a/NBA/NBAv3Scores.js b/NBA/NBAv3Scores.js index a9adb1e..e9eefb7 100644 --- a/NBA/NBAv3Scores.js +++ b/NBA/NBAv3Scores.js @@ -15,17 +15,17 @@ class NBAv3ScoresClient extends BaseClient { } /// - /// Get Current Season + /// Get Season - Current /// - getCurrentSeasonPromise(){ + getSeasonCurrentPromise(){ return this.GetPromise('/v3/nba/scores/{format}/CurrentSeason'); } /// - /// Get Games by Date + /// Get Games - by Date [Live & Final] /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. - getGamesByDatePromise(date){ + getGamesByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nba/scores/{format}/GamesByDate/{date}', parameters); @@ -39,7 +39,7 @@ class NBAv3ScoresClient extends BaseClient { } /// - /// Get News by Date + /// Get News - by Date /// /// The date of the news. Examples: 2015-JUL-31, 2015-SEP-01. getNewsByDatePromise(date){ @@ -49,7 +49,7 @@ class NBAv3ScoresClient extends BaseClient { } /// - /// Get News by Player + /// Get News - by Player /// /// Unique FantasyData Player ID. Example:10000507. getNewsByPlayerPromise(playerid){ @@ -59,10 +59,10 @@ class NBAv3ScoresClient extends BaseClient { } /// - /// Get Schedules - Legacy + /// Get Schedules /// /// Year of the season (with optional season type). Examples: 2018, 2018PRE, 2018POST, 2018STAR, 2019, etc. - getSchedulesLegacyPromise(season){ + getSchedulesPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/nba/scores/{format}/Games/{season}', parameters); @@ -86,10 +86,10 @@ class NBAv3ScoresClient extends BaseClient { } /// - /// Get Team Game Stats by Date + /// Get Team Game Stats - by Date [Live & Final] /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. - getTeamGameStatsByDatePromise(date){ + getTeamGameStatsByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nba/scores/{format}/TeamGameStatsByDate/{date}', parameters); @@ -106,38 +106,38 @@ class NBAv3ScoresClient extends BaseClient { } /// - /// Get Teams (Active) + /// Get Team Profiles - by Active /// - getTeamsActivePromise(){ + getTeamProfilesByActivePromise(){ return this.GetPromise('/v3/nba/scores/{format}/teams'); } /// - /// Get Teams (All) + /// Get Team Profiles - All /// - getTeamsAllPromise(){ + getTeamProfilesAllPromise(){ return this.GetPromise('/v3/nba/scores/{format}/AllTeams'); } /// - /// Get Player Details by Active - Legacy + /// Get Player Details - by Active /// - getPlayerDetailsByActiveLegacyPromise(){ + getPlayerDetailsByActivePromise(){ return this.GetPromise('/v3/nba/scores/{format}/Players'); } /// - /// Get Player Details by Free Agent - Legacy + /// Get Player Details - by Free Agent /// - getPlayerDetailsByFreeAgentLegacyPromise(){ + getPlayerDetailsByFreeAgentPromise(){ return this.GetPromise('/v3/nba/scores/{format}/FreeAgents'); } /// - /// Get Player Details by Player - Legacy + /// Get Player Details - by Player /// /// Unique FantasyData Player ID. Example:20000571. - getPlayerDetailsByPlayerLegacyPromise(playerid){ + getPlayerDetailsByPlayerPromise(playerid){ var parameters = {}; parameters['playerid']=playerid; return this.GetPromise('/v3/nba/scores/{format}/Player/{playerid}', parameters); @@ -151,17 +151,17 @@ class NBAv3ScoresClient extends BaseClient { } /// - /// Get Players by Team - Legacy + /// Get Player Details - by Team /// /// The abbreviation of the requested team. Examples: PHI, BKN. - getPlayersByTeamLegacyPromise(team){ + getPlayerDetailsByTeamPromise(team){ var parameters = {}; parameters['team']=team; return this.GetPromise('/v3/nba/scores/{format}/Players/{team}', parameters); } /// - /// Get Team Game Logs By Season + /// Get Team Game Logs - by Season /// /// Season to get games from. Example 2019POST, 2020 /// Unique ID of team. Example 8 @@ -182,59 +182,89 @@ class NBAv3ScoresClient extends BaseClient { } /// - /// Get Scores by Date + /// Get Games (Basic) - by Date [Live & Final] /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. - getScoresByDatePromise(date){ + getGamesBasicByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nba/scores/{format}/ScoresBasic/{date}', parameters); } /// - /// Get Players by Team + /// Get Players Profiles - by Team /// /// The abbreviation of the requested team. Examples: PHI, BKN. - getPlayersByTeamPromise(team){ + getPlayersProfilesByTeamPromise(team){ var parameters = {}; parameters['team']=team; return this.GetPromise('/v3/nba/scores/{format}/PlayersBasic/{team}', parameters); } /// - /// Get Schedules + /// Get Schedules (Basic) /// /// Year of the season (with optional season type). Examples: 2018, 2018PRE, 2018POST, 2018STAR, 2019, etc. - getSchedulesPromise(season){ + getSchedulesBasicPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/nba/scores/{format}/SchedulesBasic/{season}', parameters); } /// - /// Get Players Active + /// Get Player Profiles - by Active /// - getPlayersActivePromise(){ + getPlayerProfilesByActivePromise(){ return this.GetPromise('/v3/nba/scores/{format}/PlayersActiveBasic'); } /// - /// Get Players by Free Agent + /// Get Player Profiles - by Free Agent /// - getPlayersByFreeAgentPromise(){ + getPlayerProfilesByFreeAgentPromise(){ return this.GetPromise('/v3/nba/scores/{format}/PlayersByFreeAgents'); } /// - /// Get Transactions By Date + /// Get Transactions /// /// The date of the news. Examples: 2015-JUL-31, 2015-SEP-01. - getTransactionsByDatePromise(date){ + getTransactionsPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nba/scores/{format}/TransactionsByDate/{date}', parameters); } + /// + /// Get Games - by Date [Final] + /// + /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. + getGamesByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/nba/scores/{format}/GamesByDateFinal/{date}', parameters); + } + + /// + /// Get Games (Basic) - by Date [Final] + /// + /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. + getGamesBasicByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/nba/scores/{format}/ScoresBasicFinal/{date}', parameters); + } + + /// + /// Get Team Profiles - by Season + /// + /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. + getTeamProfilesBySeasonPromise(season){ + var parameters = {}; + parameters['season']=season; + return this.GetPromise('/v3/nba/scores/{format}/teams/{season}', parameters); + } + } module.exports = NBAv3ScoresClient; diff --git a/NBA/NBAv3Stats.js b/NBA/NBAv3Stats.js index d471558..cbf1b08 100644 --- a/NBA/NBAv3Stats.js +++ b/NBA/NBAv3Stats.js @@ -15,31 +15,31 @@ class NBAv3StatsClient extends BaseClient { } /// - /// Get Box Score + /// Get Box Score [Live & Final] /// /// The GameID of an NBA game. GameIDs can be found in the Games API. Valid entries are 14620, 16905, etc. - getBoxScorePromise(gameid){ + getBoxScoreLiveFinalPromise(gameid){ var parameters = {}; parameters['gameid']=gameid; return this.GetPromise('/v3/nba/stats/{format}/BoxScore/{gameid}', parameters); } /// - /// Get Box Scores by Date + /// Get Box Scores - by Date [Live & Final] /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. - getBoxScoresByDatePromise(date){ + getBoxScoresByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nba/stats/{format}/BoxScores/{date}', parameters); } /// - /// Get Box Scores by Date Delta + /// Get Box Scores Delta - by Date /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. /// Only returns player statistics that have changed in the last X minutes. You specify how many minutes in time to go back. Valid entries are: 1 or 2. - getBoxScoresByDateDeltaPromise(date, minutes){ + getBoxScoresDeltaByDatePromise(date, minutes){ var parameters = {}; parameters['date']=date; parameters['minutes']=minutes; @@ -47,14 +47,14 @@ class NBAv3StatsClient extends BaseClient { } /// - /// Get Current Season + /// Get Season - Current /// - getCurrentSeasonPromise(){ + getSeasonCurrentPromise(){ return this.GetPromise('/v3/nba/stats/{format}/CurrentSeason'); } /// - /// Get DFS Slates by Date + /// Get DFS Slates - by Date /// /// The date of the game(s). Examples: 2017-DEC-01, 2018-FEB-15. getDFSSlatesByDatePromise(date){ @@ -64,10 +64,10 @@ class NBAv3StatsClient extends BaseClient { } /// - /// Get Games by Date + /// Get Games - by Date [Live & Final] /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. - getGamesByDatePromise(date){ + getGamesByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nba/stats/{format}/GamesByDate/{date}', parameters); @@ -81,7 +81,7 @@ class NBAv3StatsClient extends BaseClient { } /// - /// Get News by Date + /// Get News - by Date /// /// The date of the news. Examples: 2015-JUL-31, 2015-SEP-01. getNewsByDatePromise(date){ @@ -91,7 +91,7 @@ class NBAv3StatsClient extends BaseClient { } /// - /// Get News by Player + /// Get News - by Player /// /// Unique FantasyData Player ID. Example:10000507. getNewsByPlayerPromise(playerid){ @@ -101,45 +101,45 @@ class NBAv3StatsClient extends BaseClient { } /// - /// Get Player Details by Active - Legacy + /// Get Player Details - by Active /// - getPlayerDetailsByActiveLegacyPromise(){ + getPlayerDetailsByActivePromise(){ return this.GetPromise('/v3/nba/stats/{format}/Players'); } /// - /// Get Player Details by Free Agent - Legacy + /// Get Player Details - by Free Agent /// - getPlayerDetailsByFreeAgentLegacyPromise(){ + getPlayerDetailsByFreeAgentPromise(){ return this.GetPromise('/v3/nba/stats/{format}/FreeAgents'); } /// - /// Get Player Details by Player - Legacy + /// Get Player Details - by Player /// /// Unique FantasyData Player ID. Example:20000571. - getPlayerDetailsByPlayerLegacyPromise(playerid){ + getPlayerDetailsByPlayerPromise(playerid){ var parameters = {}; parameters['playerid']=playerid; return this.GetPromise('/v3/nba/stats/{format}/Player/{playerid}', parameters); } /// - /// Get Player Game Stats by Date + /// Get Player Game Stats - by Date [Live & Final] /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. - getPlayerGameStatsByDatePromise(date){ + getPlayerGameStatsByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nba/stats/{format}/PlayerGameStatsByDate/{date}', parameters); } /// - /// Get Player Game Stats by Player + /// Get Player Game Stats - by Player [Live & Final] /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. /// Unique FantasyData Player ID. Example:20000571. - getPlayerGameStatsByPlayerPromise(date, playerid){ + getPlayerGameStatsByPlayerLiveFinalPromise(date, playerid){ var parameters = {}; parameters['date']=date; parameters['playerid']=playerid; @@ -157,7 +157,7 @@ class NBAv3StatsClient extends BaseClient { } /// - /// Get Player Season Stats By Player + /// Get Player Season Stats - by Player /// /// Year of the season. Examples: 2015, 2016. /// Unique FantasyData Player ID. Example:20000571. @@ -169,7 +169,7 @@ class NBAv3StatsClient extends BaseClient { } /// - /// Get Player Season Stats by Team + /// Get Player Season Stats - by Team /// /// Year of the season. Examples: 2015, 2016. /// The abbreviation of the requested team. Examples: MIA, PHI. @@ -181,10 +181,10 @@ class NBAv3StatsClient extends BaseClient { } /// - /// Get Player Details by Team - Legacy + /// Get Player Details - by Team /// /// The abbreviation of the requested team. Examples: PHI, BKN. - getPlayerDetailsByTeamLegacyPromise(team){ + getPlayerDetailsByTeamPromise(team){ var parameters = {}; parameters['team']=team; return this.GetPromise('/v3/nba/stats/{format}/Players/{team}', parameters); @@ -218,10 +218,10 @@ class NBAv3StatsClient extends BaseClient { } /// - /// Get Team Game Stats by Date + /// Get Team Game Stats - by Date [Live & Final] /// /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. - getTeamGameStatsByDatePromise(date){ + getTeamGameStatsByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nba/stats/{format}/TeamGameStatsByDate/{date}', parameters); @@ -238,7 +238,7 @@ class NBAv3StatsClient extends BaseClient { } /// - /// Get Team Stats Allowed by Position + /// Get Team Stats Allowed - by Position /// /// Year of the season. Examples: 2015, 2016. getTeamStatsAllowedByPositionPromise(season){ @@ -248,16 +248,16 @@ class NBAv3StatsClient extends BaseClient { } /// - /// Get Teams (Active) + /// Get Team Profiles - by Active /// - getTeamsActivePromise(){ + getTeamProfilesByActivePromise(){ return this.GetPromise('/v3/nba/stats/{format}/teams'); } /// - /// Get Teams (All) + /// Get Team Profiles - All /// - getTeamsAllPromise(){ + getTeamProfilesAllPromise(){ return this.GetPromise('/v3/nba/stats/{format}/AllTeams'); } @@ -272,7 +272,7 @@ class NBAv3StatsClient extends BaseClient { } /// - /// Get Player Game Logs By Season + /// Get Player Game Logs - by Season /// /// Season to get games from. Example 2019POST, 2020 /// Unique FantasyData Player ID. Example:20000571. @@ -286,7 +286,7 @@ class NBAv3StatsClient extends BaseClient { } /// - /// Get Team Game Logs By Season + /// Get Team Game Logs - by Season /// /// Season to get games from. Example 2019POST, 2020 /// Unique ID of team. Example 8 @@ -299,6 +299,56 @@ class NBAv3StatsClient extends BaseClient { return this.GetPromise('/v3/nba/stats/{format}/TeamGameStatsBySeason/{season}/{teamid}/{numberofgames}', parameters); } + /// + /// Get Player Game Stats - by Date [Final] + /// + /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. + getPlayerGameStatsByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/nba/stats/{format}/PlayerGameStatsByDateFinal/{date}', parameters); + } + + /// + /// Get Team Game Stats - by Date [Final] + /// + /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. + getTeamGameStatsByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/nba/stats/{format}/TeamGameStatsByDateFinal/{date}', parameters); + } + + /// + /// Get Box Score [Final] + /// + /// The GameID of an NBA game. GameIDs can be found in the Games API. Valid entries are 14620, 16905, etc. + getBoxScoreFinalPromise(gameid){ + var parameters = {}; + parameters['gameid']=gameid; + return this.GetPromise('/v3/nba/stats/{format}/BoxScoreFinal/{gameid}', parameters); + } + + /// + /// Get Box Scores - by Date [Final] + /// + /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. + getBoxScoresByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/nba/stats/{format}/BoxScoresFinal/{date}', parameters); + } + + /// + /// Get Fantasy Points - by Date + /// + /// The date of the game(s). Examples: 2015-JUL-31, 2015-SEP-01. + getFantasyPointsByDatePromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/nba/stats/{format}/FantasyGameStatsByDate/{date}', parameters); + } + } module.exports = NBAv3StatsClient; diff --git a/NFLv3/NFLv3Odds.js b/NFLv3/NFLv3Odds.js index 81132e5..78d023b 100644 --- a/NFLv3/NFLv3Odds.js +++ b/NFLv3/NFLv3Odds.js @@ -8,7 +8,7 @@ class NFLv3OddsClient extends BaseClient { } /// - /// Get In-Game Odds by Week + /// Get In-Game Odds - by Week /// /// Year of the season, with optional season type. Examples: 2018, 2018POST, etc. /// The week of the scores (games). Examples: 1, 2, etc. @@ -30,7 +30,7 @@ class NFLv3OddsClient extends BaseClient { } /// - /// Get Pre-Game Odds by Week + /// Get Pre-Game Odds - by Week /// /// Year of the season, with optional season type. Examples: 2018, 2018POST, etc. /// The week of the scores (games). Examples: 1, 2, etc. @@ -92,7 +92,7 @@ class NFLv3OddsClient extends BaseClient { } /// - /// Get Period Game Odds by Week + /// Get Period Game Odds - by Week /// /// Year of the season, with optional season type. Examples: 2018, 2018POST, etc. /// The week of the scores (games). Examples: 1, 2, etc. @@ -114,7 +114,7 @@ class NFLv3OddsClient extends BaseClient { } /// - /// Get Betting Trends by Matchup + /// Get Betting Trends - by Matchup /// /// Abbreviation of a team. Example: PHI. /// Abbreviation of an opponent. Example: NE. @@ -126,7 +126,7 @@ class NFLv3OddsClient extends BaseClient { } /// - /// Get Betting Trends by Team + /// Get Betting Trends - by Team /// /// Abbreviation of a team. Example: PHI. getBettingTrendsByTeamPromise(team){ @@ -136,7 +136,7 @@ class NFLv3OddsClient extends BaseClient { } /// - /// Get Betting Events by Date + /// Get Betting Events - by Date /// /// The date of the game(s). Examples: 2020-09-10, 2020-09-13. getBettingEventsByDatePromise(date){ @@ -146,7 +146,7 @@ class NFLv3OddsClient extends BaseClient { } /// - /// Get Betting Events by Season + /// Get Betting Events - by Season /// /// Year of the season Examples: 2020, 2021, etc. getBettingEventsBySeasonPromise(season){ @@ -156,7 +156,7 @@ class NFLv3OddsClient extends BaseClient { } /// - /// Get Betting Futures by Season + /// Get Betting Futures - by Season /// /// Year of the season (with optional season type). Examples: 2020REG, 2020PRE, 2020POST, 2021, etc. getBettingFuturesBySeasonPromise(season){ @@ -176,7 +176,7 @@ class NFLv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by Event + /// Get Betting Markets - by Event /// /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. @@ -188,7 +188,7 @@ class NFLv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by Market Type + /// Get Betting Markets - by Market Type /// /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). /// The Market Type ID of the desired MarketTypes to pull. Some common types include: 1 for Game Lines, 2 for Player Props, 3 for Team Props, 6 for Game Props @@ -202,11 +202,11 @@ class NFLv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by GameID (formerly Betting Markets by ScoreID) + /// Get Betting Markets - by Game /// /// The ScoreID of the desired game/score for which to pull all betting markets (includes outcomes/bets). /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. - getBettingMarketsByGameIDFormerlyBettingMarketsByScoreIDPromise(scoreid, include){ + getBettingMarketsByGamePromise(scoreid, include){ var parameters = {}; parameters['scoreid']=scoreid; parameters['include']=include; @@ -221,34 +221,34 @@ class NFLv3OddsClient extends BaseClient { } /// - /// Get Sportsbooks (Active) + /// Get Sportsbooks - Active /// getSportsbooksActivePromise(){ return this.GetPromise('/v3/nfl/odds/{format}/ActiveSportsbooks'); } /// - /// Get Betting Splits By BettingMarketId + /// Get Betting Splits - by Betting Market /// /// The BettingMarketID of the market you would like to get splits for. Note that markets we do not have split information on will return an empty response. - getBettingSplitsByBettingMarketIdPromise(marketId){ + getBettingSplitsByBettingMarketPromise(marketId){ var parameters = {}; parameters['marketId']=marketId; return this.GetPromise('/v3/nfl/odds/{format}/BettingSplitsByMarketId/{marketId}', parameters); } /// - /// Get Betting Splits By GameID (formerly Betting Splits By ScoreID) + /// Get Betting Splits - by Game /// /// The ScoreID of the desired game to get Betting Market Splits for - getBettingSplitsByGameIDFormerlyBettingSplitsByScoreIDPromise(scoreId){ + getBettingSplitsByGamePromise(scoreId){ var parameters = {}; parameters['scoreId']=scoreId; return this.GetPromise('/v3/nfl/odds/{format}/BettingSplitsByScoreId/{scoreId}', parameters); } /// - /// Get Betting Results By Market + /// Get Betting Results - by Market /// /// The MarketId of the desired market for which to pull all outcomes/bets. getBettingResultsByMarketPromise(marketId){ @@ -258,17 +258,187 @@ class NFLv3OddsClient extends BaseClient { } /// - /// Get Betting Player Props by GameID (formerly Betting Player Props by ScoreID) + /// Get Betting Player Props - by Game /// /// The unique ScoreID of the game in question. /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. - getBettingPlayerPropsByGameIDFormerlyBettingPlayerPropsByScoreIDPromise(scoreid, include){ + getBettingPlayerPropsByGamePromise(scoreid, include){ var parameters = {}; parameters['scoreid']=scoreid; parameters['include']=include; return this.GetPromise('/v3/nfl/odds/{format}/BettingPlayerPropsByScoreID/{scoreid}', parameters); } + /// + /// Get Betting Futures - by Season [Sportsbook Group] + /// + /// Year of the season (with optional season type). Examples: 2020REG, 2020PRE, 2020POST, 2021, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingFuturesBySeasonSportsbookGroupPromise(season, sportsbookgroup){ + var parameters = {}; + parameters['season']=season; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nfl/odds/{format}/BettingFuturesBySeason/{season}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Market [Sportsbook Group] + /// + /// The MarketId of the desired market for which to pull all outcomes/bets. + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingMarketSportsbookGroupPromise(marketId, sportsbookgroup){ + var parameters = {}; + parameters['marketId']=marketId; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nfl/odds/{format}/BettingMarket/{marketId}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Event [Sportsbook Group] + /// + /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingMarketsByEventSportsbookGroupPromise(eventId, sportsbookgroup, include){ + var parameters = {}; + parameters['eventId']=eventId; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/nfl/odds/{format}/BettingMarketsByEvent/{eventId}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Game [Sportsbook Group] + /// + /// The GameID of the desired game/score for which to pull all betting markets (includes outcomes/bets). + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingMarketsByGameSportsbookGroupPromise(gameid, sportsbookgroup, include){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/nfl/odds/{format}/BettingMarketsByGameID/{gameid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Market Type [Sportsbook Group] + /// + /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). + /// The Market Type ID of the desired MarketTypes to pull. Some common types include: 1 for Game Lines, 2 for Player Props, 3 for Team Props, 6 for Game Props + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingMarketsByMarketTypeSportsbookGroupPromise(eventId, marketTypeID, sportsbookgroup, include){ + var parameters = {}; + parameters['eventId']=eventId; + parameters['marketTypeID']=marketTypeID; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/nfl/odds/{format}/BettingMarketsByMarketType/{eventId}/{marketTypeID}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Player Props - by Game [Sportsbook Group] + /// + /// The unique ScoreID of the game in question. + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingPlayerPropsByGameSportsbookGroupPromise(scoreid, sportsbookgroup, include){ + var parameters = {}; + parameters['scoreid']=scoreid; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/nfl/odds/{format}/BettingPlayerPropsByScoreID/{scoreid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Results - by Market [Sportsbook Group] + /// + /// The MarketId of the desired market for which to pull all outcomes/bets. + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingResultsByMarketSportsbookGroupPromise(marketId, sportsbookgroup){ + var parameters = {}; + parameters['marketId']=marketId; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nfl/odds/{format}/BettingResultsByMarket/{marketId}/{sportsbookgroup}', parameters); + } + + /// + /// Get In-Game Odds by Week [Sportsbook Group] + /// + /// Year of the season, with optional season type. Examples: 2018, 2018POST, etc. + /// The week of the scores (games). Examples: 1, 2, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getInGameOddsByWeekSportsbookGroupPromise(season, week, sportsbookgroup){ + var parameters = {}; + parameters['season']=season; + parameters['week']=week; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nfl/odds/{format}/InGameOddsByWeek/{season}/{week}/{sportsbookgroup}', parameters); + } + + /// + /// Get In-Game Odds Line Movement [Sportsbook Group] + /// + /// The ScoreID of an NFL score (game). ScoreIDs can be found in the Scores API. Valid entries are 16654 or 16667 + /// The name of the Sportsbook grouping. Examples: G1100 + getInGameOddsLineMovementSportsbookGroupPromise(scoreid, sportsbookgroup){ + var parameters = {}; + parameters['scoreid']=scoreid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nfl/odds/{format}/InGameLineMovement/{scoreid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds - by Week [Sportsbook Group] + /// + /// Year of the season, with optional season type. Examples: 2018, 2018POST, etc. + /// The week of the scores (games). Examples: 1, 2, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getPreGameAndPeriodGameOddsByWeekSportsbookGroupPromise(season, week, sportsbookgroup){ + var parameters = {}; + parameters['season']=season; + parameters['week']=week; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nfl/odds/{format}/PreGameOddsByWeek/{season}/{week}/{sportsbookgroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds Line Movement [Sportsbook Group] + /// + /// The ScoreID of an NFL score (game). ScoreIDs can be found in the Scores API. Valid entries are 16654 or 16667 + /// The name of the Sportsbook grouping. Examples: G1100 + getPreGameAndPeriodGameOddsLineMovementSportsbookGroupPromise(scoreid, sportsbookgroup){ + var parameters = {}; + parameters['scoreid']=scoreid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nfl/odds/{format}/PreGameOddsLineMovement/{scoreid}/{sportsbookgroup}', parameters); + } + + /// + /// Get In-Game Odds Line Movement with Resulting [Sportsbook Group] + /// + /// The ScoreID of an NFL score (game). ScoreIDs can be found in the Scores API. Valid entries are 16654 or 16667 + /// The name of the Sportsbook grouping. Examples: G1100 + getInGameOddsLineMovementWithResultingSportsbookGroupPromise(scoreid, sportsbookgroup){ + var parameters = {}; + parameters['scoreid']=scoreid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nfl/odds/{format}/InGameLineMovementWithResulting/{scoreid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds Line Movement with Resulting [Sportsbook Group] + /// + /// The ScoreID of an NFL score (game). ScoreIDs can be found in the Scores API. Valid entries are 16654 or 16667 + /// The name of the Sportsbook grouping. Examples: G1100 + getPreGameAndPeriodGameOddsLineMovementWithResultingSportsbookGroupPromise(scoreid, sportsbookgroup){ + var parameters = {}; + parameters['scoreid']=scoreid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nfl/odds/{format}/PreGameOddsLineMovementWithResulting/{scoreid}/{sportsbookgroup}', parameters); + } + } module.exports = NFLv3OddsClient; diff --git a/NFLv3/NFLv3PlayByPlay.js b/NFLv3/NFLv3PlayByPlay.js index a55e227..8d529d3 100644 --- a/NFLv3/NFLv3PlayByPlay.js +++ b/NFLv3/NFLv3PlayByPlay.js @@ -8,12 +8,12 @@ class NFLv3PlayByPlayClient extends BaseClient { } /// - /// Get Play By Play + /// Get Play By Play - by Team [Live & Final] /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 /// Abbreviation of the home team. Example: WAS. - getPlayByPlayPromise(season, week, hometeam){ + getPlayByPlayByTeamLiveFinalPromise(season, week, hometeam){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -52,15 +52,39 @@ class NFLv3PlayByPlayClient extends BaseClient { } /// - /// Get Play By Play By GameID + /// Get Play By Play [Final] /// /// The GameID of a NFL game. GameIDs can be found in the Games API. Valid entries are 14620 or 16905 - getPlayByPlayByGameIDPromise(gameid){ + getPlayByPlayFinalPromise(gameid){ + var parameters = {}; + parameters['gameid']=gameid; + return this.GetPromise('/v3/nfl/pbp/{format}/PlayByPlayFinal/{gameid}', parameters); + } + + /// + /// Get Play By Play [Live & Final] + /// + /// The GameID of a NFL game. GameIDs can be found in the Games API. Valid entries are 14620 or 16905 + getPlayByPlayLiveFinalPromise(gameid){ var parameters = {}; parameters['gameid']=gameid; return this.GetPromise('/v3/nfl/pbp/{format}/PlayByPlay/{gameid}', parameters); } + /// + /// Get Play By Play - by Team [Final] + /// + /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. + /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 + /// Abbreviation of the home team. Example: WAS. + getPlayByPlayByTeamFinalPromise(season, week, hometeam){ + var parameters = {}; + parameters['season']=season; + parameters['week']=week; + parameters['hometeam']=hometeam; + return this.GetPromise('/v3/nfl/pbp/{format}/PlayByPlayFinal/{season}/{week}/{hometeam}', parameters); + } + } module.exports = NFLv3PlayByPlayClient; diff --git a/NFLv3/NFLv3Projections.js b/NFLv3/NFLv3Projections.js index 4763d31..c413416 100644 --- a/NFLv3/NFLv3Projections.js +++ b/NFLv3/NFLv3Projections.js @@ -8,7 +8,7 @@ class NFLv3ProjectionsClient extends BaseClient { } /// - /// Get DFS Slates by Date + /// Get DFS Slates - by Date /// /// The date of the slates. Examples: 2017-SEP-25, 2017-10-31. getDFSSlatesByDatePromise(date){ @@ -18,7 +18,7 @@ class NFLv3ProjectionsClient extends BaseClient { } /// - /// Get DFS Slates by Week + /// Get DFS Slates - by Week /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 @@ -30,11 +30,11 @@ class NFLv3ProjectionsClient extends BaseClient { } /// - /// Get Projected Fantasy Defense Game Stats (w/ DFS Salaries) + /// Get Projected Fantasy Defense Game Stats With DFS Salaries /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 - getProjectedFantasyDefenseGameStatsPromise(season, week){ + getProjectedFantasyDefenseGameStatsWithDFSSalariesPromise(season, week){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -42,17 +42,17 @@ class NFLv3ProjectionsClient extends BaseClient { } /// - /// Get Projected Fantasy Defense Season Stats (w/ ADP) + /// Get Projected Fantasy Defense Season Stats With ADP /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. - getProjectedFantasyDefenseSeasonStatsPromise(season){ + getProjectedFantasyDefenseSeasonStatsWithADPPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/nfl/projections/{format}/FantasyDefenseProjectionsBySeason/{season}', parameters); } /// - /// Get Projected Player Game Stats by Player (w/ Injuries, Lineups, DFS Salaries) + /// Get Projected Player Game Stats - by Player /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 @@ -66,7 +66,7 @@ class NFLv3ProjectionsClient extends BaseClient { } /// - /// Get Projected Player Game Stats by Team (w/ Injuries, Lineups, DFS Salaries) + /// Get Projected Player Game Stats - by Team /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 @@ -80,7 +80,7 @@ class NFLv3ProjectionsClient extends BaseClient { } /// - /// Get Projected Player Game Stats by Week (w/ Injuries, Lineups, DFS Salaries) + /// Get Projected Player Game Stats - by Week /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 @@ -92,21 +92,21 @@ class NFLv3ProjectionsClient extends BaseClient { } /// - /// Get Projected Player Season Stats (w/ ADP) + /// Get Projected Player Season Stats With ADP /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. - getProjectedPlayerSeasonStatsPromise(season){ + getProjectedPlayerSeasonStatsWithADPPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/nfl/projections/{format}/PlayerSeasonProjectionStats/{season}', parameters); } /// - /// Get Projected Player Season Stats by Player (w/ ADP) + /// Get Projected Player Season Stats With ADP - by Player /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Each NFL player has a unique ID assigned by FantasyData. Player IDs can be determined by pulling player related data. Example:14257. - getProjectedPlayerSeasonStatsByPlayerPromise(season, playerid){ + getProjectedPlayerSeasonStatsWithADPByPlayerPromise(season, playerid){ var parameters = {}; parameters['season']=season; parameters['playerid']=playerid; @@ -114,11 +114,11 @@ class NFLv3ProjectionsClient extends BaseClient { } /// - /// Get Projected Player Season Stats by Team (w/ ADP) + /// Get Projected Player Season Stats With ADP - by Team /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Abbreviation of the team. Example: WAS. - getProjectedPlayerSeasonStatsByTeamPromise(season, team){ + getProjectedPlayerSeasonStatsWithADPByTeamPromise(season, team){ var parameters = {}; parameters['season']=season; parameters['team']=team; @@ -126,7 +126,7 @@ class NFLv3ProjectionsClient extends BaseClient { } /// - /// Get IDP Projected Player Game Stats by Player (w/ Injuries, Lineups, DFS Salaries) + /// Get IDP Projected Player Game Stats - by Player /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 @@ -140,7 +140,7 @@ class NFLv3ProjectionsClient extends BaseClient { } /// - /// Get IDP Projected Player Game Stats by Team (w/ Injuries, Lineups, DFS Salaries) + /// Get IDP Projected Player Game Stats - by Team /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 @@ -154,7 +154,7 @@ class NFLv3ProjectionsClient extends BaseClient { } /// - /// Get IDP Projected Player Game Stats by Week (w/ Injuries, Lineups, DFS Salaries) + /// Get IDP Projected Player Game Stats - by Week /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 @@ -166,26 +166,26 @@ class NFLv3ProjectionsClient extends BaseClient { } /// - /// Get DFS Slate Ownership Projections by SlateID + /// Get DFS Slate Ownership Projections - by Slate /// /// SlateID of the DFS Slate you wish to get ownership projections for. Will have an empty SlateOwnershipProjections if this slate was not projected - getDFSSlateOwnershipProjectionsBySlateIDPromise(slateId){ + getDFSSlateOwnershipProjectionsBySlatePromise(slateId){ var parameters = {}; parameters['slateId']=slateId; return this.GetPromise('/v3/nfl/projections/{format}/DfsSlateOwnershipProjectionsBySlateID/{slateId}', parameters); } /// - /// Get Upcoming DFS Slate Ownership Projections + /// Get DFS Slate Ownership Projections - Upcoming /// - getUpcomingDFSSlateOwnershipProjectionsPromise(){ + getDFSSlateOwnershipProjectionsUpcomingPromise(){ return this.GetPromise('/v3/nfl/projections/{format}/UpcomingDfsSlateOwnershipProjections'); } /// - /// Get Injured Players + /// Get Player Details - by Injured /// - getInjuredPlayersPromise(){ + getPlayerDetailsByInjuredPromise(){ return this.GetPromise('/v3/nfl/projections/{format}/InjuredPlayers'); } diff --git a/NFLv3/NFLv3RotoBallerArticles.js b/NFLv3/NFLv3RotoBallerArticles.js index 201c741..aa1a6de 100644 --- a/NFLv3/NFLv3RotoBallerArticles.js +++ b/NFLv3/NFLv3RotoBallerArticles.js @@ -15,7 +15,7 @@ class NFLv3RotoBallerArticlesClient extends BaseClient { } /// - /// Get RotoBaller Articles by Date + /// Get RotoBaller Articles - by Date /// /// The date of the news. Examples: 2017-JUL-31, 2017-SEP-01. getRotoBallerArticlesByDatePromise(date){ @@ -25,7 +25,7 @@ class NFLv3RotoBallerArticlesClient extends BaseClient { } /// - /// Get RotoBaller Articles by Player + /// Get RotoBaller Articles - by Player /// /// Unique FantasyData Player ID. Example:10000507. getRotoBallerArticlesByPlayerPromise(playerid){ diff --git a/NFLv3/NFLv3RotoBallerPremiumNews.js b/NFLv3/NFLv3RotoBallerPremiumNews.js index 900c98b..c2bad35 100644 --- a/NFLv3/NFLv3RotoBallerPremiumNews.js +++ b/NFLv3/NFLv3RotoBallerPremiumNews.js @@ -15,7 +15,7 @@ class NFLv3RotoBallerPremiumNewsClient extends BaseClient { } /// - /// Get Premium News by Date + /// Get Premium News - by Date /// /// The date of the news. Examples: 2017-JUL-31, 2017-SEP-01. getPremiumNewsByDatePromise(date){ @@ -25,7 +25,7 @@ class NFLv3RotoBallerPremiumNewsClient extends BaseClient { } /// - /// Get Premium News by Player + /// Get Premium News - by Player /// /// Unique FantasyData Player ID. Example:10000507. getPremiumNewsByPlayerPromise(playerid){ @@ -35,7 +35,7 @@ class NFLv3RotoBallerPremiumNewsClient extends BaseClient { } /// - /// Get Premium News by Team + /// Get Premium News - by Team /// /// Abbreviation of the team. Example: WAS. getPremiumNewsByTeamPromise(team){ diff --git a/NFLv3/NFLv3RotoworldPlayerNews.js b/NFLv3/NFLv3RotoworldPlayerNews.js index 7c4977c..c5fcb6a 100644 --- a/NFLv3/NFLv3RotoworldPlayerNews.js +++ b/NFLv3/NFLv3RotoworldPlayerNews.js @@ -8,14 +8,14 @@ class NFLv3RotoworldPlayerNewsClient extends BaseClient { } /// - /// Get Rotoworld Player News (Recent) + /// Get Rotoworld Player News - by Recent /// - getRotoworldPlayerNewsRecentPromise(){ + getRotoworldPlayerNewsByRecentPromise(){ return this.GetPromise('/v3/nfl/rotoworld/{format}/RotoworldPlayerNews'); } /// - /// Get Rotoworld Player News by Date + /// Get Rotoworld Player News - by Date /// /// The date of the news. Examples: 2022-JUL-31, 2022-SEP-01. getRotoworldPlayerNewsByDatePromise(date){ diff --git a/NFLv3/NFLv3Scores.js b/NFLv3/NFLv3Scores.js index 1ccf058..a368ff7 100644 --- a/NFLv3/NFLv3Scores.js +++ b/NFLv3/NFLv3Scores.js @@ -54,7 +54,7 @@ class NFLv3ScoresClient extends BaseClient { } /// - /// Get News by Date + /// Get News - by Date /// /// The date of the news. Examples: 2017-JUL-31, 2017-SEP-01. getNewsByDatePromise(date){ @@ -64,7 +64,7 @@ class NFLv3ScoresClient extends BaseClient { } /// - /// Get News by Player + /// Get News - by Player /// /// Each NFL player has a unique ID assigned by FantasyData. Player IDs can be determined by pulling player related data. Example:14257. getNewsByPlayerPromise(playerid){ @@ -74,7 +74,7 @@ class NFLv3ScoresClient extends BaseClient { } /// - /// Get News by Team + /// Get News - by Team /// /// Abbreviation of the team. Example: WAS. getNewsByTeamPromise(team){ @@ -84,31 +84,31 @@ class NFLv3ScoresClient extends BaseClient { } /// - /// Get Schedules - Legacy + /// Get Schedules /// /// Year of the season (with optional season type). Examples: 2018, 2018PRE, 2018POST, 2018STAR, 2019, etc. - getSchedulesLegacyPromise(season){ + getSchedulesPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/nfl/scores/{format}/Schedules/{season}', parameters); } /// - /// Get Scores by Season - Legacy + /// Get Games - by Season [Live & Final] /// /// Year of the season (with optional season type). Examples: 2018, 2018PRE, 2018POST, 2018STAR, 2019, etc. - getScoresBySeasonLegacyPromise(season){ + getGamesBySeasonLiveFinalPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/nfl/scores/{format}/Scores/{season}', parameters); } /// - /// Get Scores by Week - Legacy + /// Get Games - by Week [Live & Final] /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 - getScoresByWeekLegacyPromise(season, week){ + getGamesByWeekLiveFinalPromise(season, week){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -116,21 +116,21 @@ class NFLv3ScoresClient extends BaseClient { } /// - /// Get Season Current + /// Get Season - Current /// getSeasonCurrentPromise(){ return this.GetPromise('/v3/nfl/scores/{format}/CurrentSeason'); } /// - /// Get Season Last Completed + /// Get Season - Last Completed /// getSeasonLastCompletedPromise(){ return this.GetPromise('/v3/nfl/scores/{format}/LastCompletedSeason'); } /// - /// Get Season Upcoming + /// Get Season - Upcoming /// getSeasonUpcomingPromise(){ return this.GetPromise('/v3/nfl/scores/{format}/UpcomingSeason'); @@ -154,11 +154,11 @@ class NFLv3ScoresClient extends BaseClient { } /// - /// Get Team Game Stats + /// Get Team Game Stats [Live & Final] /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 - getTeamGameStatsPromise(season, week){ + getTeamGameStatsLiveFinalPromise(season, week){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -176,24 +176,24 @@ class NFLv3ScoresClient extends BaseClient { } /// - /// Get Teams (Active) + /// Get Team Profiles - by Active /// - getTeamsActivePromise(){ + getTeamProfilesByActivePromise(){ return this.GetPromise('/v3/nfl/scores/{format}/Teams'); } /// - /// Get Teams (All) + /// Get Team Profiles - All /// - getTeamsAllPromise(){ + getTeamProfilesAllPromise(){ return this.GetPromise('/v3/nfl/scores/{format}/AllTeams'); } /// - /// Get Teams by Season + /// Get Team Profiles - by Season /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. - getTeamsBySeasonPromise(season){ + getTeamProfilesBySeasonPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/nfl/scores/{format}/Teams/{season}', parameters); @@ -210,21 +210,21 @@ class NFLv3ScoresClient extends BaseClient { } /// - /// Get Week Current + /// Get Week - Current /// getWeekCurrentPromise(){ return this.GetPromise('/v3/nfl/scores/{format}/CurrentWeek'); } /// - /// Get Week Last Completed + /// Get Week - Last Completed /// getWeekLastCompletedPromise(){ return this.GetPromise('/v3/nfl/scores/{format}/LastCompletedWeek'); } /// - /// Get Week Upcoming + /// Get Week - Upcoming /// getWeekUpcomingPromise(){ return this.GetPromise('/v3/nfl/scores/{format}/UpcomingWeek'); @@ -241,31 +241,31 @@ class NFLv3ScoresClient extends BaseClient { } /// - /// Get Player Details by Available - Legacy + /// Get Player Details - All /// - getPlayerDetailsByAvailableLegacyPromise(){ + getPlayerDetailsAllPromise(){ return this.GetPromise('/v3/nfl/scores/{format}/Players'); } /// - /// Get Player Details by Free Agents - Legacy + /// Get Player Details - by Free Agents /// - getPlayerDetailsByFreeAgentsLegacyPromise(){ + getPlayerDetailsByFreeAgentsPromise(){ return this.GetPromise('/v3/nfl/scores/{format}/FreeAgents'); } /// - /// Get Player Details by Player - Legacy + /// Get Player Details - by Player /// /// Each NFL player has a unique ID assigned by FantasyData. Player IDs can be determined by pulling player related data. Example:732. - getPlayerDetailsByPlayerLegacyPromise(playerid){ + getPlayerDetailsByPlayerPromise(playerid){ var parameters = {}; parameters['playerid']=playerid; return this.GetPromise('/v3/nfl/scores/{format}/Player/{playerid}', parameters); } /// - /// Get Player Details by Team + /// Get Player Details - by Team /// /// Abbreviation of the team. Example: WAS. getPlayerDetailsByTeamPromise(team){ @@ -275,10 +275,10 @@ class NFLv3ScoresClient extends BaseClient { } /// - /// Get Player Details by Rookie Draft Year - Legacy + /// Get Player Details - by Rookie Draft Year /// /// Year of the season. Examples: 2018, 2019, etc. - getPlayerDetailsByRookieDraftYearLegacyPromise(season){ + getPlayerDetailsByRookieDraftYearPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/nfl/scores/{format}/Rookies/{season}', parameters); @@ -292,22 +292,22 @@ class NFLv3ScoresClient extends BaseClient { } /// - /// Get Scores by Date - Legacy + /// Get Games - by Date [Live & Final] /// /// The date of the games. Examples: 2021-SEP-12, 2021-NOV-28. - getScoresByDateLegacyPromise(date){ + getGamesByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nfl/scores/{format}/ScoresByDate/{date}', parameters); } /// - /// Get Team Game Logs By Season + /// Get Player Game Logs - by Season /// /// Season to get games from. Example 2019POST, 2020 /// Unique ID of team. Example 8 /// How many games to return. Example all, 10, 25 - getTeamGameLogsBySeasonPromise(season, teamid, numberofgames){ + getPlayerGameLogsBySeasonPromise(season, teamid, numberofgames){ var parameters = {}; parameters['season']=season; parameters['teamid']=teamid; @@ -323,21 +323,21 @@ class NFLv3ScoresClient extends BaseClient { } /// - /// Get Schedules + /// Get Schedules (Basic) /// /// Year of the season (with optional season type). Examples: 2018, 2018PRE, 2018POST, 2018STAR, 2019, etc. - getSchedulesPromise(season){ + getSchedulesBasicPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/nfl/scores/{format}/SchedulesBasic/{season}', parameters); } /// - /// Get Scores by Week + /// Get Games (Basic) - by Week [Live & Final] /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 - getScoresByWeekPromise(season, week){ + getGamesBasicByWeekLiveFinalPromise(season, week){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -345,48 +345,48 @@ class NFLv3ScoresClient extends BaseClient { } /// - /// Get Teams + /// Get Team Profiles (Basic) - All /// - getTeamsPromise(){ + getTeamProfilesBasicAllPromise(){ return this.GetPromise('/v3/nfl/scores/{format}/TeamsBasic'); } /// - /// Get Players by Team + /// Get Player Profiles - by Team /// /// Abbreviation of the team. Example: WAS. - getPlayersByTeamPromise(team){ + getPlayerProfilesByTeamPromise(team){ var parameters = {}; parameters['team']=team; return this.GetPromise('/v3/nfl/scores/{format}/PlayersBasic/{team}', parameters); } /// - /// Get Players by Available + /// Get Player Profiles - All /// - getPlayersByAvailablePromise(){ + getPlayerProfilesAllPromise(){ return this.GetPromise('/v3/nfl/scores/{format}/PlayersByAvailable'); } /// - /// Get Players by Free Agent + /// Get Player Profiles - by Free Agent /// - getPlayersByFreeAgentPromise(){ + getPlayerProfilesByFreeAgentPromise(){ return this.GetPromise('/v3/nfl/scores/{format}/PlayersByFreeAgents'); } /// - /// Get Players by Rookie Draft Year + /// Get Player Profiles - by Rookie Draft Year /// /// Year of the season. Examples: 2018, 2019, etc. - getPlayersByRookieDraftYearPromise(season){ + getPlayerProfilesByRookieDraftYearPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/nfl/scores/{format}/PlayersByRookieDraftYear/{season}', parameters); } /// - /// Get Transactions By Date + /// Get Transactions - by Date /// /// The date of the news. Examples: 2017-JUL-31, 2017-SEP-01. getTransactionsByDatePromise(date){ @@ -395,6 +395,40 @@ class NFLv3ScoresClient extends BaseClient { return this.GetPromise('/v3/nfl/scores/{format}/TransactionsByDate/{date}', parameters); } + /// + /// Get Games - by Date [Final] + /// + /// The date of the games. Examples: 2021-SEP-12, 2021-NOV-28. + getGamesByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/nfl/scores/{format}/ScoresByDateFinal/{date}', parameters); + } + + /// + /// Get Games (Basic) - by Week [Final] + /// + /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. + /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 + getGamesBasicByWeekFinalPromise(season, week){ + var parameters = {}; + parameters['season']=season; + parameters['week']=week; + return this.GetPromise('/v3/nfl/scores/{format}/ScoresBasicFinal/{season}/{week}', parameters); + } + + /// + /// Get Games - by Week [Final] + /// + /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. + /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 + getGamesByWeekFinalPromise(season, week){ + var parameters = {}; + parameters['season']=season; + parameters['week']=week; + return this.GetPromise('/v3/nfl/scores/{format}/ScoresByWeekFinal/{season}/{week}', parameters); + } + } module.exports = NFLv3ScoresClient; diff --git a/NFLv3/NFLv3Stats.js b/NFLv3/NFLv3Stats.js index 581bf16..34b946a 100644 --- a/NFLv3/NFLv3Stats.js +++ b/NFLv3/NFLv3Stats.js @@ -15,22 +15,22 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Box Score by GameID V3 (formerly Box Score by ScoreID V3) + /// Get Box Score [Live & Final] /// /// The ScoreID of the game. Possible values include: 16247, 16245, etc. - getBoxScoreByGameIDVFormerlyBoxScoreByScoreIDVPromise(scoreid){ + getBoxScoreLiveFinalPromise(scoreid){ var parameters = {}; parameters['scoreid']=scoreid; return this.GetPromise('/v3/nfl/stats/{format}/BoxScoreByScoreIDV3/{scoreid}', parameters); } /// - /// Get Box Score V3 + /// Get Box Score - by Team [Live & Final] /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 /// Abbreviation of a team playing in this game. Example: WAS. - getBoxScoreVPromise(season, week, hometeam){ + getBoxScoreByTeamLiveFinalPromise(season, week, hometeam){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -39,13 +39,13 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Box Scores Delta V3 + /// Get Box Scores Delta - by Week /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 /// The subcategory of players to include in the returned PlayerGame records. Possible values include: all Returns all players fantasy Returns traditional fantasy players (QB, RB, WR, TE, K, DST) idp Returns traditional fantasy players and IDP players. /// Only returns player statistics that have changed in the last X minutes. You specify how many minutes in time to go back. Valid entries are: 1, 2, etc. - getBoxScoresDeltaVPromise(season, week, playerstoinclude, minutes){ + getBoxScoresDeltaByWeekPromise(season, week, playerstoinclude, minutes){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -85,7 +85,7 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get DFS Slates by Date + /// Get DFS Slates - by Date /// /// The date of the slates. Examples: 2017-SEP-25, 2017-10-31. getDFSSlatesByDatePromise(date){ @@ -95,7 +95,7 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get DFS Slates by Week + /// Get DFS Slates - by Week /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 @@ -107,11 +107,11 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Fantasy Defense Game Stats + /// Get Fantasy Defense Game Stats - All /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 - getFantasyDefenseGameStatsPromise(season, week){ + getFantasyDefenseGameStatsAllPromise(season, week){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -119,7 +119,7 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Fantasy Defense Game Stats by Team + /// Get Fantasy Defense Game Stats - by Team /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 @@ -133,17 +133,17 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Fantasy Defense Season Stats + /// Get Fantasy Defense Season Stats - All /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. - getFantasyDefenseSeasonStatsPromise(season){ + getFantasyDefenseSeasonStatsAllPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/nfl/stats/{format}/FantasyDefenseBySeason/{season}', parameters); } /// - /// Get Fantasy Defense Season Stats by Team + /// Get Fantasy Defense Season Stats - by Team /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Abbreviation of the team. Example: WAS. @@ -155,11 +155,11 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Fantasy Player Ownership Percentages (Season-Long) + /// Get Fantasy Player Ownership Percentages (Season-Long) - by Week /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 - getFantasyPlayerOwnershipPercentagesSeasonLongPromise(season, week){ + getFantasyPlayerOwnershipPercentagesSeasonLongByWeekPromise(season, week){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -167,7 +167,7 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Fantasy Players with ADP + /// Get Fantasy Players - with ADP /// getFantasyPlayersWithADPPromise(){ return this.GetPromise('/v3/nfl/stats/{format}/FantasyPlayers'); @@ -203,11 +203,11 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Injuries + /// Get Injuries - All /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 - getInjuriesPromise(season, week){ + getInjuriesAllPromise(season, week){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -215,7 +215,7 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Injuries by Team + /// Get Injuries - by Team /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 @@ -337,7 +337,7 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get News by Date + /// Get News - by Date /// /// The date of the news. Examples: 2017-JUL-31, 2017-SEP-01. getNewsByDatePromise(date){ @@ -347,7 +347,7 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get News by Player + /// Get News - by Player /// /// Each NFL player has a unique ID assigned by FantasyData. Player IDs can be determined by pulling player related data. Example:14257. getNewsByPlayerPromise(playerid){ @@ -357,7 +357,7 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get News by Team + /// Get News - by Team /// /// Abbreviation of the team. Example: WAS. getNewsByTeamPromise(team){ @@ -367,21 +367,21 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Player Details by Available + /// Get Player Details - by Available /// getPlayerDetailsByAvailablePromise(){ return this.GetPromise('/v3/nfl/stats/{format}/Players'); } /// - /// Get Player Details by Free Agents + /// Get Player Details - by Free Agents /// getPlayerDetailsByFreeAgentsPromise(){ return this.GetPromise('/v3/nfl/stats/{format}/FreeAgents'); } /// - /// Get Player Details by Player + /// Get Player Details - by Player /// /// Each NFL player has a unique ID assigned by FantasyData. Player IDs can be determined by pulling player related data. Example:732. getPlayerDetailsByPlayerPromise(playerid){ @@ -391,7 +391,7 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Player Details by Team + /// Get Player Details - by Team /// /// Abbreviation of the team. Example: WAS. getPlayerDetailsByTeamPromise(team){ @@ -427,12 +427,12 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Player Game Stats by Team + /// Get Player Game Stats - by Team [Live & Final] /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 /// Abbreviation of the team. Example: WAS. - getPlayerGameStatsByTeamPromise(season, week, team){ + getPlayerGameStatsByTeamLiveFinalPromise(season, week, team){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -441,11 +441,11 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Player Game Stats by Week + /// Get Player Game Stats - by Week [Live & Final] /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 - getPlayerGameStatsByWeekPromise(season, week){ + getPlayerGameStatsByWeekLiveFinalPromise(season, week){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -453,12 +453,12 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Player Game Stats by Week Delta + /// Get Player Game Stats Delta - by Week /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 /// Only returns player statistics that have changed in the last X minutes. You specify how many minutes in time to go back. Valid entries are: 1 or 2. - getPlayerGameStatsByWeekDeltaPromise(season, week, minutes){ + getPlayerGameStatsDeltaByWeekPromise(season, week, minutes){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -497,7 +497,7 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Player Season Stats by Player + /// Get Player Season Stats - by Player /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Each NFL player has a unique ID assigned by FantasyData. Player IDs can be determined by pulling player related data. Example:732. @@ -509,7 +509,7 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Player Season Stats by Team + /// Get Player Season Stats - by Team /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Abbreviation of the team. Example: WAS. @@ -531,31 +531,31 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Schedule + /// Get Schedules /// /// Year of the season (with optional season type). Examples: 2018, 2018PRE, 2018POST, 2018STAR, 2019, etc. - getSchedulePromise(season){ + getSchedulesPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/nfl/stats/{format}/Schedules/{season}', parameters); } /// - /// Get Games by Season (formerly Scores by Season) + /// Get Games - by Season [Live & Final] /// /// Year of the season (with optional season type). Examples: 2018, 2018PRE, 2018POST, 2018STAR, 2019, etc. - getGamesBySeasonFormerlyScoresBySeasonPromise(season){ + getGamesBySeasonLiveFinalPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/nfl/stats/{format}/Scores/{season}', parameters); } /// - /// Get Games by Week (formerly Scores by Week) + /// Get Games - by Week [Live & Final] /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 - getGamesByWeekFormerlyScoresByWeekPromise(season, week){ + getGamesByWeekLiveFinalPromise(season, week){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -563,21 +563,21 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Season Current + /// Get Season - Current /// getSeasonCurrentPromise(){ return this.GetPromise('/v3/nfl/stats/{format}/CurrentSeason'); } /// - /// Get Season Last Completed + /// Get Season - Last Completed /// getSeasonLastCompletedPromise(){ return this.GetPromise('/v3/nfl/stats/{format}/LastCompletedSeason'); } /// - /// Get Season Upcoming + /// Get Season - Upcoming /// getSeasonUpcomingPromise(){ return this.GetPromise('/v3/nfl/stats/{format}/UpcomingSeason'); @@ -601,11 +601,11 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Team Game Stats + /// Get Team Game Stats - by Game [Live & Final] /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 - getTeamGameStatsPromise(season, week){ + getTeamGameStatsByGameLiveFinalPromise(season, week){ var parameters = {}; parameters['season']=season; parameters['week']=week; @@ -623,24 +623,24 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Teams (Active) + /// Get Team Profiles - by Active /// - getTeamsActivePromise(){ + getTeamProfilesByActivePromise(){ return this.GetPromise('/v3/nfl/stats/{format}/Teams'); } /// - /// Get Teams (All) + /// Get Team Profiles - All /// - getTeamsAllPromise(){ + getTeamProfilesAllPromise(){ return this.GetPromise('/v3/nfl/stats/{format}/AllTeams'); } /// - /// Get Teams by Season + /// Get Team Profiles - by Season /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. - getTeamsBySeasonPromise(season){ + getTeamProfilesBySeasonPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/nfl/stats/{format}/Teams/{season}', parameters); @@ -657,21 +657,21 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Week Current + /// Get Week - Current /// getWeekCurrentPromise(){ return this.GetPromise('/v3/nfl/stats/{format}/CurrentWeek'); } /// - /// Get Week Last Completed + /// Get Week - Last Completed /// getWeekLastCompletedPromise(){ return this.GetPromise('/v3/nfl/stats/{format}/LastCompletedWeek'); } /// - /// Get Week Upcoming + /// Get Week - Upcoming /// getWeekUpcomingPromise(){ return this.GetPromise('/v3/nfl/stats/{format}/UpcomingWeek'); @@ -688,10 +688,10 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Box Scores V3 Simulation + /// Get Box Scores Simulation /// /// The number of plays to progress in this NFL live game simulation. Example entries are 0, 1, 2, 3, 150, 200, etc. - getBoxScoresVSimulationPromise(numberofplays){ + getBoxScoresSimulationPromise(numberofplays){ var parameters = {}; parameters['numberofplays']=numberofplays; return this.GetPromise('/v3/nfl/stats/{format}/SimulatedBoxScoresV3/{numberofplays}', parameters); @@ -708,7 +708,7 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Player Game Red Zone Stats Inside Five + /// Get Player Game Red Zone Stats (Inside Five) /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 @@ -720,7 +720,7 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Player Game Red Zone Stats Inside Ten + /// Get Player Game Red Zone Stats (Inside Ten) /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 @@ -732,7 +732,7 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Player Season Red Zone Stats Inside Five + /// Get Player Season Red Zone Stats (Inside Five) /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. getPlayerSeasonRedZoneStatsInsideFivePromise(season){ @@ -742,7 +742,7 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Player Season Red Zone Stats Inside Ten + /// Get Player Season Red Zone Stats (Inside Ten) /// /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. getPlayerSeasonRedZoneStatsInsideTenPromise(season){ @@ -752,7 +752,7 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Player Details by Rookie Draft Year + /// Get Player Details - by Rookie Draft Year /// /// Year of the season. Examples: 2018, 2019, etc. getPlayerDetailsByRookieDraftYearPromise(season){ @@ -762,7 +762,7 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Player Game Logs By Season + /// Get Player Game Logs - by Season /// /// Season to get games from. Example 2019POST, 2020 /// Unique FantasyData Player ID. Example:17920. @@ -776,17 +776,17 @@ class NFLv3StatsClient extends BaseClient { } /// - /// Get Games by Date (formerly Scores by Date) + /// Get Games - by Date [Live & Final] /// /// The date of the games. Examples: 2021-SEP-12, 2021-NOV-28. - getGamesByDateFormerlyScoresByDatePromise(date){ + getGamesByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nfl/stats/{format}/ScoresByDate/{date}', parameters); } /// - /// Get Team Game Logs By Season + /// Get Team Game Logs - by Season /// /// Season to get games from. Example 2019POST, 2020 /// Unique ID of team. Example 8 @@ -799,6 +799,114 @@ class NFLv3StatsClient extends BaseClient { return this.GetPromise('/v3/nfl/stats/{format}/TeamGameStatsBySeason/{season}/{teamid}/{numberofgames}', parameters); } + /// + /// Get Box Score [Final] + /// + /// The ScoreID of the game. Possible values include: 16247, 16245, etc. + getBoxScoreFinalPromise(scoreid){ + var parameters = {}; + parameters['scoreid']=scoreid; + return this.GetPromise('/v3/nfl/stats/{format}/BoxScoreFinal/{scoreid}', parameters); + } + + /// + /// Get Box Scores - by Week [Final] + /// + /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. + /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 + getBoxScoresByWeekFinalPromise(season, week){ + var parameters = {}; + parameters['season']=season; + parameters['week']=week; + return this.GetPromise('/v3/nfl/stats/{format}/BoxScoresFinal/{season}/{week}', parameters); + } + + /// + /// Get Player Game Stats - by Week [Final] + /// + /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. + /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 + getPlayerGameStatsByWeekFinalPromise(season, week){ + var parameters = {}; + parameters['season']=season; + parameters['week']=week; + return this.GetPromise('/v3/nfl/stats/{format}/PlayerGameStatsByWeekFinal/{season}/{week}', parameters); + } + + /// + /// Get Team Game Stats - by Game [Final] + /// + /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. + /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 + getTeamGameStatsByGameFinalPromise(season, week){ + var parameters = {}; + parameters['season']=season; + parameters['week']=week; + return this.GetPromise('/v3/nfl/stats/{format}/TeamGameStatsFinal/{season}/{week}', parameters); + } + + /// + /// Get Games - by Season [Final] + /// + /// Year of the season (with optional season type). Examples: 2018, 2018PRE, 2018POST, 2018STAR, 2019, etc. + getGamesBySeasonFinalPromise(season){ + var parameters = {}; + parameters['season']=season; + return this.GetPromise('/v3/nfl/stats/{format}/ScoresFinal/{season}', parameters); + } + + /// + /// Get Games - by Week [Final] + /// + /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. + /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 + getGamesByWeekFinalPromise(season, week){ + var parameters = {}; + parameters['season']=season; + parameters['week']=week; + return this.GetPromise('/v3/nfl/stats/{format}/ScoresByWeekFinal/{season}/{week}', parameters); + } + + /// + /// Get Player Game Stats - by Team [Final] + /// + /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. + /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 + /// Abbreviation of the team. Example: WAS. + getPlayerGameStatsByTeamFinalPromise(season, week, team){ + var parameters = {}; + parameters['season']=season; + parameters['week']=week; + parameters['team']=team; + return this.GetPromise('/v3/nfl/stats/{format}/PlayerGameStatsByTeamFinal/{season}/{week}/{team}', parameters); + } + + /// + /// Get Box Score - by Team [Final] + /// + /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. + /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 + /// Abbreviation of a team playing in this game. Example: WAS. + getBoxScoreByTeamFinalPromise(season, week, hometeam){ + var parameters = {}; + parameters['season']=season; + parameters['week']=week; + parameters['hometeam']=hometeam; + return this.GetPromise('/v3/nfl/stats/{format}/BoxScoreByTeamFinal/{season}/{week}/{hometeam}', parameters); + } + + /// + /// Get Fantasy Points - by Week + /// + /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. + /// Week of the season. Valid values are as follows: Preseason 0 to 4, Regular Season 1 to 17, Postseason 1 to 4. Example: 1 + getFantasyPointsByWeekPromise(season, week){ + var parameters = {}; + parameters['season']=season; + parameters['week']=week; + return this.GetPromise('/v3/nfl/stats/{format}/FantasyGameStatsByWeek/{season}/{week}', parameters); + } + } module.exports = NFLv3StatsClient; diff --git a/NHL/NHLv3Odds.js b/NHL/NHLv3Odds.js index 2a37b67..5cc2877 100644 --- a/NHL/NHLv3Odds.js +++ b/NHL/NHLv3Odds.js @@ -8,10 +8,10 @@ class NHLv3OddsClient extends BaseClient { } /// - /// Get In-Game Odds by Date + /// Get Pre-Game Odds - by Date /// /// The date of the game(s). Examples: 2018-11-20, 2018-11-23. - getInGameOddsByDatePromise(date){ + getPreGameOddsByDatePromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nhl/odds/{format}/LiveGameOddsByDate/{date}', parameters); @@ -28,10 +28,10 @@ class NHLv3OddsClient extends BaseClient { } /// - /// Get Pre-Game Odds by Date + /// Get Pre-Game Odds - by Date /// /// The date of the game(s). Examples: 2018-11-20, 2018-11-23. - getPreGameOddsByDatePromise(date){ + getPreGameOddsByDate_701Promise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nhl/odds/{format}/GameOddsByDate/{date}', parameters); @@ -48,7 +48,7 @@ class NHLv3OddsClient extends BaseClient { } /// - /// Get Generated Player Props by Date + /// Get Generated Player Props - by Date /// /// The date of the game(s). Examples: 2018-11-20, 2018-11-23. getGeneratedPlayerPropsByDatePromise(date){ @@ -58,7 +58,7 @@ class NHLv3OddsClient extends BaseClient { } /// - /// Get Generated Player Props by Player + /// Get Generated Player Props - by Player /// /// The date of the game(s). Examples: 2018-11-20, 2018-11-23. /// Unique FantasyData Player ID. Example:30000378 @@ -70,7 +70,7 @@ class NHLv3OddsClient extends BaseClient { } /// - /// Get Generated Player Props by Team + /// Get Generated Player Props - by Team /// /// The date of the game(s). Examples: 2018-11-20, 2018-11-23. /// The abbreviation of the requested team. Examples: PHI, MIN, DET, etc. @@ -82,7 +82,7 @@ class NHLv3OddsClient extends BaseClient { } /// - /// Get Period Game Odds by Date + /// Get Period Game Odds - by Date /// /// The date of the game(s). Examples: 2018-11-20, 2018-11-23. getPeriodGameOddsByDatePromise(date){ @@ -102,7 +102,7 @@ class NHLv3OddsClient extends BaseClient { } /// - /// Get Betting Trends by Matchup + /// Get Betting Trends - by Matchup /// /// The abbreviation of the requested team. Examples: PHI, MIN, DET, etc. /// The abbreviation of the requested opponent. Examples: PHI, MIN, DET, etc. @@ -114,7 +114,7 @@ class NHLv3OddsClient extends BaseClient { } /// - /// Get Betting Trends by Team + /// Get Betting Trends - by Team /// /// The abbreviation of the requested team. Examples: PHI, MIN, DET, etc. getBettingTrendsByTeamPromise(team){ @@ -124,7 +124,7 @@ class NHLv3OddsClient extends BaseClient { } /// - /// Get Betting Events by Date + /// Get Betting Events - by Date /// /// The date of the game(s). Examples: 2020-02-15, 2020-02-23. getBettingEventsByDatePromise(date){ @@ -134,7 +134,7 @@ class NHLv3OddsClient extends BaseClient { } /// - /// Get Betting Events by Season + /// Get Betting Events - by Season /// /// Year of the season (with optional season type). Examples: 2020, 2020PRE, 2020POST, 2020STAR, 2021, etc. getBettingEventsBySeasonPromise(season){ @@ -144,7 +144,7 @@ class NHLv3OddsClient extends BaseClient { } /// - /// Get Betting Futures by Season + /// Get Betting Futures - by Season /// /// Year of the season Examples: 2020, 2021, etc getBettingFuturesBySeasonPromise(season){ @@ -164,7 +164,7 @@ class NHLv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by Event + /// Get Betting Markets - by Event /// /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). Valid entries include: 134, 155, etc. /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. @@ -176,11 +176,11 @@ class NHLv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by GameID + /// Get Betting Markets - by Game /// /// The GameID of the desired game for which to pull all betting markets (includes outcomes/bets). Valid entries include: 14814 /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. - getBettingMarketsByGameIDPromise(gameID, include){ + getBettingMarketsByGamePromise(gameID, include){ var parameters = {}; parameters['gameID']=gameID; parameters['include']=include; @@ -188,7 +188,7 @@ class NHLv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by Market Type + /// Get Betting Markets - by Market Type /// /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). Valid entries include: 134, 155, etc. /// The Market Type ID of the desired MarketTypes to pull. Some common types include: 1 for `Game Lines` 2 for `Player Props` 3 for `Team Props` 6 for `Game Props` @@ -209,38 +209,38 @@ class NHLv3OddsClient extends BaseClient { } /// - /// Get Sportsbooks (Active) + /// Get Sportsbooks - by Active /// - getSportsbooksActivePromise(){ + getSportsbooksByActivePromise(){ return this.GetPromise('/v3/nhl/odds/{format}/ActiveSportsbooks'); } /// - /// Get Betting Splits By BettingMarketId + /// Get Betting Splits - by Betting Market /// /// The MarketId of the desired market for which to pull splits. MarketIds are pulled from the Betting Markets endpoints. - getBettingSplitsByBettingMarketIdPromise(marketId){ + getBettingSplitsByBettingMarketPromise(marketId){ var parameters = {}; parameters['marketId']=marketId; return this.GetPromise('/v3/nhl/odds/{format}/BettingSplitsByMarketId/{marketId}', parameters); } /// - /// Get Betting Splits By GameID + /// Get Betting Splits - by Game /// /// The ID of the game for which you want to receive splits for. GameIds are pulled from the Schedules and Games by Date endpoints. - getBettingSplitsByGameIDPromise(gameId){ + getBettingSplitsByGamePromise(gameId){ var parameters = {}; parameters['gameId']=gameId; return this.GetPromise('/v3/nhl/odds/{format}/BettingSplitsByGameId/{gameId}', parameters); } /// - /// Get Betting Player Props by GameID + /// Get Betting Player Props - by Game /// /// The unique GameID of the game in question. /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. - getBettingPlayerPropsByGameIDPromise(gameId, include){ + getBettingPlayerPropsByGamePromise(gameId, include){ var parameters = {}; parameters['gameId']=gameId; parameters['include']=include; @@ -248,7 +248,7 @@ class NHLv3OddsClient extends BaseClient { } /// - /// Get Betting Results By Market + /// Get Betting Results - by Market /// /// The MarketId of the desired market for which to pull all outcomes/bets. getBettingResultsByMarketPromise(marketId){ @@ -257,6 +257,172 @@ class NHLv3OddsClient extends BaseClient { return this.GetPromise('/v3/nhl/odds/{format}/BettingMarketResults/{marketId}', parameters); } + /// + /// Get Betting Futures - by Season [Sportsbook Group] + /// + /// Year of the season Examples: 2020, 2021, etc + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingFuturesBySeasonSportsbookGroupPromise(season, sportsbookgroup){ + var parameters = {}; + parameters['season']=season; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nhl/odds/{format}/BettingFuturesBySeason/{season}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Market [Sportsbook Group] + /// + /// The MarketId of the desired market for which to pull all outcomes/bets. Valid entries include: 421, 1041, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingMarketSportsbookGroupPromise(marketId, sportsbookgroup){ + var parameters = {}; + parameters['marketId']=marketId; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nhl/odds/{format}/BettingMarket/{marketId}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Event [Sportsbook Group] + /// + /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). Valid entries include: 134, 155, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingMarketsByEventSportsbookGroupPromise(eventId, sportsbookgroup, include){ + var parameters = {}; + parameters['eventId']=eventId; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/nhl/odds/{format}/BettingMarketsByEvent/{eventId}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Game [Sportsbook Group] + /// + /// The GameID of the desired game for which to pull all betting markets (includes outcomes/bets). Valid entries include: 14814 + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingMarketsByGameSportsbookGroupPromise(gameID, sportsbookgroup, include){ + var parameters = {}; + parameters['gameID']=gameID; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/nhl/odds/{format}/BettingMarketsByGameID/{gameID}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Market Type [Sportsbook Group] + /// + /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). Valid entries include: 134, 155, etc. + /// The Market Type ID of the desired MarketTypes to pull. Some common types include: 1 for `Game Lines` 2 for `Player Props` 3 for `Team Props` 6 for `Game Props` + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingMarketsByMarketTypeSportsbookGroupPromise(eventId, marketTypeID, sportsbookgroup, include){ + var parameters = {}; + parameters['eventId']=eventId; + parameters['marketTypeID']=marketTypeID; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/nhl/odds/{format}/BettingMarketsByMarketType/{eventId}/{marketTypeID}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Player Props - by Game [Sportsbook Group] + /// + /// The unique GameID of the game in question. + /// The name of the Sportsbook grouping. Examples: G1100 + /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. + getBettingPlayerPropsByGameSportsbookGroupPromise(gameId, sportsbookgroup, include){ + var parameters = {}; + parameters['gameId']=gameId; + parameters['sportsbookgroup']=sportsbookgroup; + parameters['include']=include; + return this.GetPromise('/v3/nhl/odds/{format}/BettingPlayerPropsByGameID/{gameId}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Results - by Market [Sportsbook Group] + /// + /// The MarketId of the desired market for which to pull all outcomes/bets. + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingResultsByMarketSportsbookGroupPromise(marketId, sportsbookgroup){ + var parameters = {}; + parameters['marketId']=marketId; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nhl/odds/{format}/BettingResultsByMarket/{marketId}/{sportsbookgroup}', parameters); + } + + /// + /// Get In-Game Odds - by Date [Sportsbook Group] + /// + /// The date of the game(s). Examples: 2018-11-20, 2018-11-23. + /// The name of the Sportsbook grouping. Examples: G1100 + getInGameOddsByDateSportsbookGroupPromise(date, sportsbookgroup){ + var parameters = {}; + parameters['date']=date; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nhl/odds/{format}/InGameOddsByDate/{date}/{sportsbookgroup}', parameters); + } + + /// + /// Get In-Game Odds Line Movement [Sportsbook Group] + /// + /// The GameID of an NHL game. GameIDs can be found in the Games API. Valid entries are 13096 or 13110 + /// The name of the Sportsbook grouping. Examples: G1100 + getInGameOddsLineMovementSportsbookGroupPromise(gameid, sportsbookgroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nhl/odds/{format}/InGameLineMovement/{gameid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds - by Date [Sportsbook Group] + /// + /// The date of the game(s). Examples: 2018-11-20, 2018-11-23. + /// The name of the Sportsbook grouping. Examples: G1100 + getPreGameAndPeriodGameOddsByDateSportsbookGroupPromise(date, sportsbookgroup){ + var parameters = {}; + parameters['date']=date; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nhl/odds/{format}/PreGameOddsByDate/{date}/{sportsbookgroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds Line Movement [Sportsbook Group] + /// + /// The GameID of an NHL game. GameIDs can be found in the Games API. Valid entries are 13096 or 13110 + /// The name of the Sportsbook grouping. Examples: G1100 + getPreGameAndPeriodGameOddsLineMovementSportsbookGroupPromise(gameid, sportsbookgroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nhl/odds/{format}/PreGameOddsLineMovement/{gameid}/{sportsbookgroup}', parameters); + } + + /// + /// Get In-Game Odds Line Movement with Resulting [Sportsbook Group] + /// + /// The GameID of an NHL game. GameIDs can be found in the Games API. Valid entries are 13096 or 13110 + /// The name of the Sportsbook grouping. Examples: G1100 + getInGameOddsLineMovementWithResultingSportsbookGroupPromise(gameid, sportsbookgroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nhl/odds/{format}/InGameLineMovementWithResulting/{gameid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds Line Movement with Resulting [Sportsbook Group] + /// + /// The GameID of an NHL game. GameIDs can be found in the Games API. Valid entries are 13096 or 13110 + /// The name of the Sportsbook grouping. Examples: G1100 + getPreGameAndPeriodGameOddsLineMovementWithResultingSportsbookGroupPromise(gameid, sportsbookgroup){ + var parameters = {}; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/nhl/odds/{format}/PreGameOddsLineMovementWithResulting/{gameid}/{sportsbookgroup}', parameters); + } + } module.exports = NHLv3OddsClient; diff --git a/NHL/NHLv3PlayByPlay.js b/NHL/NHLv3PlayByPlay.js index a56ace5..f3c55e3 100644 --- a/NHL/NHLv3PlayByPlay.js +++ b/NHL/NHLv3PlayByPlay.js @@ -8,10 +8,10 @@ class NHLv3PlayByPlayClient extends BaseClient { } /// - /// Get Play By Play + /// Get Play By Play [Live & Final] /// /// The GameID of an NHL game. GameIDs can be found in the Games API. Valid entries are 14620 or 16905 - getPlayByPlayPromise(gameid){ + getPlayByPlayLiveFinalPromise(gameid){ var parameters = {}; parameters['gameid']=gameid; return this.GetPromise('/v3/nhl/pbp/{format}/PlayByPlay/{gameid}', parameters); @@ -29,6 +29,16 @@ class NHLv3PlayByPlayClient extends BaseClient { return this.GetPromise('/v3/nhl/pbp/{format}/PlayByPlayDelta/{date}/{minutes}', parameters); } + /// + /// Get Play By Play [Final] + /// + /// The GameID of an NHL game. GameIDs can be found in the Games API. Valid entries are 14620 or 16905 + getPlayByPlayFinalPromise(gameid){ + var parameters = {}; + parameters['gameid']=gameid; + return this.GetPromise('/v3/nhl/pbp/{format}/PlayByPlayFinal/{gameid}', parameters); + } + } module.exports = NHLv3PlayByPlayClient; diff --git a/NHL/NHLv3Projections.js b/NHL/NHLv3Projections.js index 59026b4..5550569 100644 --- a/NHL/NHLv3Projections.js +++ b/NHL/NHLv3Projections.js @@ -8,7 +8,7 @@ class NHLv3ProjectionsClient extends BaseClient { } /// - /// Get DFS Slates by Date + /// Get DFS Slates - by Date /// /// The date of the game(s). Examples: 2017-DEC-01, 2018-FEB-15. getDFSSlatesByDatePromise(date){ @@ -18,7 +18,7 @@ class NHLv3ProjectionsClient extends BaseClient { } /// - /// Get Projected Player Game Stats by Date (w/ Injuries, DFS Salaries) + /// Get Projected Player Game Stats - by Date /// /// The date of the game(s). Examples: 2018-JAN-31, 2017-OCT-01. getProjectedPlayerGameStatsByDatePromise(date){ @@ -28,7 +28,7 @@ class NHLv3ProjectionsClient extends BaseClient { } /// - /// Get Projected Player Game Stats by Player (w/ Injuries, DFS Salaries) + /// Get Projected Player Game Stats - by Player /// /// The date of the game(s). Examples: 2018-JAN-31, 2017-OCT-01. /// Unique FantasyData Player ID. Example:30000378. @@ -40,7 +40,7 @@ class NHLv3ProjectionsClient extends BaseClient { } /// - /// Get Starting Goaltenders by Date + /// Get Starting Goaltenders - by Date /// /// The date of the game(s). Examples: 2021-OCT-12, 2021-DEC-09. getStartingGoaltendersByDatePromise(date){ @@ -50,9 +50,9 @@ class NHLv3ProjectionsClient extends BaseClient { } /// - /// Get Injured Players + /// Get Player Details - by Injured /// - getInjuredPlayersPromise(){ + getPlayerDetailsByInjuredPromise(){ return this.GetPromise('/v3/nhl/projections/{format}/InjuredPlayers'); } diff --git a/NHL/NHLv3RotoBallerPremiumNews.js b/NHL/NHLv3RotoBallerPremiumNews.js index c8c5d5c..65b064d 100644 --- a/NHL/NHLv3RotoBallerPremiumNews.js +++ b/NHL/NHLv3RotoBallerPremiumNews.js @@ -15,7 +15,7 @@ class NHLv3RotoBallerPremiumNewsClient extends BaseClient { } /// - /// Get Premium News by Date + /// Get Premium News - by Date /// /// The date of the news. Examples: 2021-JAN-06, 2021-JAN-31. getPremiumNewsByDatePromise(date){ @@ -25,7 +25,7 @@ class NHLv3RotoBallerPremiumNewsClient extends BaseClient { } /// - /// Get Premium News by Player + /// Get Premium News - by Player /// /// Unique SportsDataIO Player ID. Example:30001047. getPremiumNewsByPlayerPromise(playerid){ diff --git a/NHL/NHLv3Scores.js b/NHL/NHLv3Scores.js index 7c634be..8bcd079 100644 --- a/NHL/NHLv3Scores.js +++ b/NHL/NHLv3Scores.js @@ -15,17 +15,17 @@ class NHLv3ScoresClient extends BaseClient { } /// - /// Get Current Season + /// Get Season - Current /// - getCurrentSeasonPromise(){ + getSeasonCurrentPromise(){ return this.GetPromise('/v3/nhl/scores/{format}/CurrentSeason'); } /// - /// Get Games by Date - Legacy + /// Get Games - by Date [Live & Final] /// /// The date of the game(s). Examples: 2018-JAN-31, 2017-OCT-01. - getGamesByDateLegacyPromise(date){ + getGamesByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nhl/scores/{format}/GamesByDate/{date}', parameters); @@ -39,7 +39,7 @@ class NHLv3ScoresClient extends BaseClient { } /// - /// Get News by Date + /// Get News - by Date /// /// The date of the news. Examples: 2018-JAN-31, 2017-OCT-01. getNewsByDatePromise(date){ @@ -49,7 +49,7 @@ class NHLv3ScoresClient extends BaseClient { } /// - /// Get News by Player + /// Get News - by Player /// /// Unique FantasyData Player ID. Example:10000507. getNewsByPlayerPromise(playerid){ @@ -59,21 +59,21 @@ class NHLv3ScoresClient extends BaseClient { } /// - /// Get Player Details by Active + /// Get Player Details - by Active /// getPlayerDetailsByActivePromise(){ return this.GetPromise('/v3/nhl/scores/{format}/Players'); } /// - /// Get Player Details by Free Agent + /// Get Player Details - by Free Agents /// - getPlayerDetailsByFreeAgentPromise(){ + getPlayerDetailsByFreeAgentsPromise(){ return this.GetPromise('/v3/nhl/scores/{format}/FreeAgents'); } /// - /// Get Player Details by Player + /// Get Player Details - by Player /// /// Unique FantasyData Player ID. Example:30000007. getPlayerDetailsByPlayerPromise(playerid){ @@ -83,20 +83,20 @@ class NHLv3ScoresClient extends BaseClient { } /// - /// Get Players - Legacy + /// Get Players Details - by Team /// /// The abbreviation of the requested team. Examples: SF, NYY. - getPlayersLegacyPromise(team){ + getPlayersDetailsByTeamPromise(team){ var parameters = {}; parameters['team']=team; return this.GetPromise('/v3/nhl/scores/{format}/Players/{team}', parameters); } /// - /// Get Schedules - Legacy + /// Get Schedules /// /// Year of the season (with optional season type). Examples: 2018, 2018PRE, 2018POST, 2018STAR, 2019, etc. - getSchedulesLegacyPromise(season){ + getSchedulesPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/nhl/scores/{format}/Games/{season}', parameters); @@ -120,10 +120,10 @@ class NHLv3ScoresClient extends BaseClient { } /// - /// Get Team Game Stats by Date + /// Get Team Game Stats - by Date [Live & Final] /// /// The date of the game(s). Examples: 2018-JAN-31, 2017-OCT-01. - getTeamGameStatsByDatePromise(date){ + getTeamGameStatsByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nhl/scores/{format}/TeamGameStatsByDate/{date}', parameters); @@ -140,21 +140,21 @@ class NHLv3ScoresClient extends BaseClient { } /// - /// Get Teams (Active) + /// Get Team Profiles - by Active /// - getTeamsActivePromise(){ + getTeamProfilesByActivePromise(){ return this.GetPromise('/v3/nhl/scores/{format}/teams'); } /// - /// Get Teams (All) + /// Get Team Profiles - All /// - getTeamsAllPromise(){ + getTeamProfilesAllPromise(){ return this.GetPromise('/v3/nhl/scores/{format}/AllTeams'); } /// - /// Get Team Game Logs By Season + /// Get Team Game Logs - by Season /// /// Season to get games from. Example 2019POST, 2020 /// Unique ID of team. Example 8 @@ -168,66 +168,96 @@ class NHLv3ScoresClient extends BaseClient { } /// - /// Get Scores by Date + /// Get Games (Basic) - by Date [Live & Final] /// /// The date of the game(s). Examples: 2018-JAN-31, 2017-OCT-01. - getScoresByDatePromise(date){ + getGamesBasicByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nhl/scores/{format}/ScoresBasic/{date}', parameters); } /// - /// Get Players by Team + /// Get Players Profiles - by Team /// /// The abbreviation of the requested team. Examples: SF, NYY. - getPlayersByTeamPromise(team){ + getPlayersProfilesByTeamPromise(team){ var parameters = {}; parameters['team']=team; return this.GetPromise('/v3/nhl/scores/{format}/PlayersBasic/{team}', parameters); } /// - /// Get Schedules + /// Get Schedules (Basic) /// /// Year of the season (with optional season type). Examples: 2018, 2018PRE, 2018POST, 2018STAR, 2019, etc. - getSchedulesPromise(season){ + getSchedulesBasicPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/v3/nhl/scores/{format}/SchedulesBasic/{season}', parameters); } /// - /// Get Players by Active + /// Get Player Details - by Active /// - getPlayersByActivePromise(){ + getPlayerDetailsByActive_1462Promise(){ return this.GetPromise('/v3/nhl/scores/{format}/PlayersByActive'); } /// - /// Get Players by Free Agent + /// Get Player Details - by Free Agents /// - getPlayersByFreeAgentPromise(){ + getPlayerDetailsByFreeAgents_1463Promise(){ return this.GetPromise('/v3/nhl/scores/{format}/PlayersByFreeAgents'); } /// - /// Get Goalie Depth Charts + /// Get Depth Charts - Goalies /// - getGoalieDepthChartsPromise(){ + getDepthChartsGoaliesPromise(){ return this.GetPromise('/v3/nhl/scores/{format}/GoalieDepthCharts'); } /// - /// Get Transactions By Date + /// Get Transactions /// /// The date of the news. Examples: 2018-JAN-31, 2017-OCT-01. - getTransactionsByDatePromise(date){ + getTransactionsPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nhl/scores/{format}/TransactionsByDate/{date}', parameters); } + /// + /// Get Team Profiles - by Season + /// + /// Year of the season and the season type. If no season type is provided, then the default is regular season. Examples: 2015REG, 2015PRE, 2015POST. + getTeamProfilesBySeasonPromise(season){ + var parameters = {}; + parameters['season']=season; + return this.GetPromise('/v3/nhl/scores/{format}/teams/{season}', parameters); + } + + /// + /// Get Games - by Date [Final] + /// + /// The date of the game(s). Examples: 2018-JAN-31, 2017-OCT-01. + getGamesByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/nhl/scores/{format}/GamesByDateFinal/{date}', parameters); + } + + /// + /// Get Games (Basic) - by Date [Final] + /// + /// The date of the game(s). Examples: 2018-JAN-31, 2017-OCT-01. + getGamesBasicByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/nhl/scores/{format}/ScoresBasicFinal/{date}', parameters); + } + } module.exports = NHLv3ScoresClient; diff --git a/NHL/NHLv3Stats.js b/NHL/NHLv3Stats.js index f82f299..3364fe9 100644 --- a/NHL/NHLv3Stats.js +++ b/NHL/NHLv3Stats.js @@ -15,31 +15,31 @@ class NHLv3StatsClient extends BaseClient { } /// - /// Get Box Score + /// Get Box Score [Live & Final] /// /// The GameID of an NHL game. GameIDs can be found in the Games API. Valid entries are 14620 or 16905 - getBoxScorePromise(gameid){ + getBoxScoreLiveFinalPromise(gameid){ var parameters = {}; parameters['gameid']=gameid; return this.GetPromise('/v3/nhl/stats/{format}/BoxScore/{gameid}', parameters); } /// - /// Get Box Scores by Date + /// Get Box Scores - by Date [Live & Final] /// /// The date of the game(s). Examples: 2017-OCT-31, 2018-FEB-15. - getBoxScoresByDatePromise(date){ + getBoxScoresByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nhl/stats/{format}/BoxScores/{date}', parameters); } /// - /// Get Box Scores by Date Delta + /// Get Box Scores Delta - by Date /// /// The date of the game(s). Examples: 2017-OCT-31, 2018-FEB-15. /// Only returns player statistics that have changed in the last X minutes. You specify how many minutes in time to go back. Valid entries are: 1 or 2. - getBoxScoresByDateDeltaPromise(date, minutes){ + getBoxScoresDeltaByDatePromise(date, minutes){ var parameters = {}; parameters['date']=date; parameters['minutes']=minutes; @@ -47,14 +47,14 @@ class NHLv3StatsClient extends BaseClient { } /// - /// Get Current Season + /// Get Season - Current /// - getCurrentSeasonPromise(){ + getSeasonCurrentPromise(){ return this.GetPromise('/v3/nhl/stats/{format}/CurrentSeason'); } /// - /// Get DFS Slates by Date + /// Get DFS Slates - by Date /// /// The date of the game(s). Examples: 2017-DEC-01, 2018-FEB-15. getDFSSlatesByDatePromise(date){ @@ -64,17 +64,17 @@ class NHLv3StatsClient extends BaseClient { } /// - /// Get Games by Date + /// Get Games - by Date [Live & Final] /// /// The date of the game(s). Examples: 2017-OCT-31, 2018-FEB-15. - getGamesByDatePromise(date){ + getGamesByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nhl/stats/{format}/GamesByDate/{date}', parameters); } /// - /// Get Line Combinations by Season + /// Get Line Combinations - by Season /// /// Year of the season. Examples: 2016, 2017. getLineCombinationsBySeasonPromise(season){ @@ -91,7 +91,7 @@ class NHLv3StatsClient extends BaseClient { } /// - /// Get News by Date + /// Get News - by Date /// /// The date of the news. Examples: 2017-OCT-31, 2018-FEB-15. getNewsByDatePromise(date){ @@ -101,7 +101,7 @@ class NHLv3StatsClient extends BaseClient { } /// - /// Get News by Player + /// Get News - by Player /// /// Unique FantasyData Player ID. Example:10000507. getNewsByPlayerPromise(playerid){ @@ -111,21 +111,21 @@ class NHLv3StatsClient extends BaseClient { } /// - /// Get Player Details by Active + /// Get Player Details - by Active /// getPlayerDetailsByActivePromise(){ return this.GetPromise('/v3/nhl/stats/{format}/Players'); } /// - /// Get Player Details by Free Agent + /// Get Player Details - by Free Agents /// - getPlayerDetailsByFreeAgentPromise(){ + getPlayerDetailsByFreeAgentsPromise(){ return this.GetPromise('/v3/nhl/stats/{format}/FreeAgents'); } /// - /// Get Player Details by Player + /// Get Player Details - by Player /// /// Unique FantasyData Player ID. Example:30000007. getPlayerDetailsByPlayerPromise(playerid){ @@ -135,21 +135,21 @@ class NHLv3StatsClient extends BaseClient { } /// - /// Get Player Game Stats by Date + /// Get Player Game Stats - by Date [Live & Final] /// /// The date of the game(s). Examples: 2017-OCT-31, 2018-FEB-15. - getPlayerGameStatsByDatePromise(date){ + getPlayerGameStatsByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nhl/stats/{format}/PlayerGameStatsByDate/{date}', parameters); } /// - /// Get Player Game Stats by Player + /// Get Player Game Stats - by Player [Live & Final] /// /// The date of the game(s). Examples: 2018-JAN-31, 2017-OCT-01. /// Unique FantasyData Player ID. Example:30000378. - getPlayerGameStatsByPlayerPromise(date, playerid){ + getPlayerGameStatsByPlayerLiveFinalPromise(date, playerid){ var parameters = {}; parameters['date']=date; parameters['playerid']=playerid; @@ -167,7 +167,7 @@ class NHLv3StatsClient extends BaseClient { } /// - /// Get Player Season Stats By Player + /// Get Player Season Stats - by Player /// /// Year of the season. Examples: 2016, 2017. /// Unique FantasyData Player ID. Example:30000378. @@ -179,7 +179,7 @@ class NHLv3StatsClient extends BaseClient { } /// - /// Get Player Season Stats by Team + /// Get Player Season Stats - by Team /// /// Year of the season. Examples: 2016, 2017. /// The abbreviation of the requested team. Examples: SF, NYY. @@ -191,10 +191,10 @@ class NHLv3StatsClient extends BaseClient { } /// - /// Get Players by Team + /// Get Player Details - by Team /// /// The abbreviation of the requested team. Examples: SF, NYY. - getPlayersByTeamPromise(team){ + getPlayerDetailsByTeamPromise(team){ var parameters = {}; parameters['team']=team; return this.GetPromise('/v3/nhl/stats/{format}/Players/{team}', parameters); @@ -228,10 +228,10 @@ class NHLv3StatsClient extends BaseClient { } /// - /// Get Team Game Stats by Date + /// Get Team Game Stats - by Date [Live & Final] /// /// The date of the game(s). Examples: 2018-JAN-31, 2017-OCT-01. - getTeamGameStatsByDatePromise(date){ + getTeamGameStatsByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nhl/stats/{format}/TeamGameStatsByDate/{date}', parameters); @@ -248,7 +248,7 @@ class NHLv3StatsClient extends BaseClient { } /// - /// Get Team Stats Allowed by Position + /// Get Team Stats Allowed - by Position /// /// Year of the season. Examples: 2016, 2017. getTeamStatsAllowedByPositionPromise(season){ @@ -258,21 +258,21 @@ class NHLv3StatsClient extends BaseClient { } /// - /// Get Teams (Active) + /// Get Team Profiles - by Active /// - getTeamsActivePromise(){ + getTeamProfilesByActivePromise(){ return this.GetPromise('/v3/nhl/stats/{format}/teams'); } /// - /// Get Teams (All) + /// Get Teams - All /// getTeamsAllPromise(){ return this.GetPromise('/v3/nhl/stats/{format}/AllTeams'); } /// - /// Get Player Game Logs By Season + /// Get Player Game Logs - by Season /// /// Season to get games from. Example 2019POST, 2020 /// Unique FantasyData Player ID. Example:30000651. @@ -286,7 +286,7 @@ class NHLv3StatsClient extends BaseClient { } /// - /// Get Team Game Logs By Season + /// Get Team Game Logs - by Season /// /// Season to get games from. Example 2019POST, 2020 /// Unique ID of team. Example 8 @@ -299,6 +299,56 @@ class NHLv3StatsClient extends BaseClient { return this.GetPromise('/v3/nhl/stats/{format}/TeamGameStatsBySeason/{season}/{teamid}/{numberofgames}', parameters); } + /// + /// Get Box Score [Final] + /// + /// The GameID of an NHL game. GameIDs can be found in the Games API. Valid entries are 14620 or 16905 + getBoxScoreFinalPromise(gameid){ + var parameters = {}; + parameters['gameid']=gameid; + return this.GetPromise('/v3/nhl/stats/{format}/BoxScoreFinal/{gameid}', parameters); + } + + /// + /// Get Box Scores - by Date [Final] + /// + /// The date of the game(s). Examples: 2017-OCT-31, 2018-FEB-15. + getBoxScoresByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/nhl/stats/{format}/BoxScoresFinal/{date}', parameters); + } + + /// + /// Get Player Game Stats - by Date [Final] + /// + /// The date of the game(s). Examples: 2017-OCT-31, 2018-FEB-15. + getPlayerGameStatsByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/nhl/stats/{format}/PlayerGameStatsByDateFinal/{date}', parameters); + } + + /// + /// Get Team Game Stats - by Date [Final] + /// + /// The date of the game(s). Examples: 2018-JAN-31, 2017-OCT-01. + getTeamGameStatsByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/nhl/stats/{format}/TeamGameStatsByDateFinal/{date}', parameters); + } + + /// + /// Get Fantasy Points - by Date + /// + /// The date of the game(s). Examples: 2017-OCT-31, 2018-FEB-15. + getFantasyPointsByDatePromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/nhl/stats/{format}/FantasyGameStatsByDate/{date}', parameters); + } + } module.exports = NHLv3StatsClient; diff --git a/Nascar/NASCARv2.js b/Nascar/NASCARv2.js index b592f38..4e83908 100644 --- a/Nascar/NASCARv2.js +++ b/Nascar/NASCARv2.js @@ -8,59 +8,126 @@ class NASCARv2Client extends BaseClient { } /// - /// Get Driver Details + /// Get Driver Profiles - by Driver /// /// Unique FantasyData Driver ID. Example:80000268. - getDriverDetailsPromise(driverid){ + getDriverProfilesByDriverPromise(driverid){ var parameters = {}; parameters['driverid']=driverid; return this.GetPromise('/nascar/v2/{format}/driver/{driverid}', parameters); } /// - /// Get Driver Race Projections (Entry List) + /// Get Projected Player Race Stats - by Race /// /// Unique FantasyData Race ID. Example:1, 2, etc. - getDriverRaceProjectionsEntryListPromise(raceid){ + getProjectedPlayerRaceStatsByRacePromise(raceid){ var parameters = {}; parameters['raceid']=raceid; return this.GetPromise('/nascar/v2/{format}/DriverRaceProjections/{raceid}', parameters); } /// - /// Get Drivers + /// Get Driver Profiles - All /// - getDriversPromise(){ + getDriverProfilesAllPromise(){ return this.GetPromise('/nascar/v2/{format}/drivers'); } /// - /// Get Race Results + /// Get Leaderboard [Live & Final] /// /// Unique FantasyData Race ID. Example:1, 2, etc. - getRaceResultsPromise(raceid){ + getLeaderboardLiveFinalPromise(raceid){ var parameters = {}; parameters['raceid']=raceid; return this.GetPromise('/nascar/v2/{format}/raceresult/{raceid}', parameters); } /// - /// Get Races / Schedule + /// Get Schedules /// /// Year of the season. Examples: 2015, 2016. - getRacesSchedulePromise(season){ + getSchedulesPromise(season){ var parameters = {}; parameters['season']=season; return this.GetPromise('/nascar/v2/{format}/races/{season}', parameters); } /// - /// Get Series + /// Get Season Current /// - getSeriesPromise(){ + getSeasonCurrentPromise(){ return this.GetPromise('/nascar/v2/{format}/series'); } + /// + /// Get Drivers - by Active + /// + getDriversByActivePromise(){ + return this.GetPromise('/nascar/v2/{format}/driversbyactive'); + } + + /// + /// Get Entry List - by Race + /// + /// Unique FantasyData Race ID. Example:1, 2, etc. + getEntryListByRacePromise(raceid){ + var parameters = {}; + parameters['raceid']=raceid; + return this.GetPromise('/nascar/v2/{format}/EntryListbyRace/{raceid}', parameters); + } + + /// + /// Get Leaderboard [Final] + /// + /// Unique FantasyData Race ID. Example:1, 2, etc. + getLeaderboardFinalPromise(raceid){ + var parameters = {}; + parameters['raceid']=raceid; + return this.GetPromise('/nascar/v2/{format}/raceresultfinal/{raceid}', parameters); + } + + /// + /// Get Tracks + /// + /// Year of the season. Examples: 2015, 2016. + getTracksPromise(season){ + var parameters = {}; + parameters['season']=season; + return this.GetPromise('/nascar/v2/{format}/tracks/{season}', parameters); + } + + /// + /// Get Fantasy Points - by Race + /// + /// Unique FantasyData Race ID. Example:1, 2, etc. + getFantasyPointsByRacePromise(raceid){ + var parameters = {}; + parameters['raceid']=raceid; + return this.GetPromise('/nascar/v2/{format}/FantasyGameStatsByRace/{raceid}', parameters); + } + + /// + /// Get Leaderboard (Basic) + /// + /// Unique FantasyData Race ID. Example:1, 2, etc. + getLeaderboardBasicPromise(raceid){ + var parameters = {}; + parameters['raceid']=raceid; + return this.GetPromise('/nascar/v2/{format}/LeaderboardBasic/{raceid}', parameters); + } + + /// + /// Get Leaderboard (Basic) [Final] + /// + /// Unique FantasyData Race ID. Example:1, 2, etc. + getLeaderboardBasicFinalPromise(raceid){ + var parameters = {}; + parameters['raceid']=raceid; + return this.GetPromise('/nascar/v2/{format}/LeaderboardBasicFinal/{raceid}', parameters); + } + } module.exports = NASCARv2Client; diff --git a/Nascar/NASCARv3Odds.js b/Nascar/NASCARv3Odds.js index 4c03114..1aa819e 100644 --- a/Nascar/NASCARv3Odds.js +++ b/Nascar/NASCARv3Odds.js @@ -28,14 +28,14 @@ class NASCARv3OddsClient extends BaseClient { } /// - /// Get Sportsbooks (Active) + /// Get Sportsbooks - by Active /// - getSportsbooksActivePromise(){ + getSportsbooksByActivePromise(){ return this.GetPromise('/v3/nascar/odds/{format}/ActiveSportsbooks'); } /// - /// Get Betting Events by Date + /// Get Betting Events - by Date /// /// The date of the race(s). Examples: 2023-02-19. getBettingEventsByDatePromise(date){ @@ -45,7 +45,7 @@ class NASCARv3OddsClient extends BaseClient { } /// - /// Get Betting Events by Season + /// Get Betting Events - by Season /// /// The season to get BettingEvents. Valid entries are formatted as years such as 2023 getBettingEventsBySeasonPromise(season){ @@ -65,7 +65,7 @@ class NASCARv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by Event + /// Get Betting Markets - by Event /// /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. @@ -77,7 +77,7 @@ class NASCARv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by Market Type + /// Get Betting Markets - by Market Type /// /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). /// The Market Type ID of the desired MarketTypes to pull. Some common types include: 1 for Race Lines, 2 for Driver Props, 3 for Head to Head Props, 4 for Group Props, 6 for Race Props @@ -91,11 +91,11 @@ class NASCARv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by RaceID + /// Get Betting Markets - by Race /// /// The RaceID of the desired race for which to pull all betting markets (includes outcomes/bets). /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. - getBettingMarketsByRaceIDPromise(raceID, include){ + getBettingMarketsByRacePromise(raceID, include){ var parameters = {}; parameters['raceID']=raceID; parameters['include']=include; diff --git a/Soccer/Soccerv3Odds.js b/Soccer/Soccerv3Odds.js index 927e8bd..48f409a 100644 --- a/Soccer/Soccerv3Odds.js +++ b/Soccer/Soccerv3Odds.js @@ -8,7 +8,7 @@ class Soccerv3OddsClient extends BaseClient { } /// - /// Get Pre-Game Odds by Date + /// Get Pre-Game Odds - by Date /// /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. getPreGameOddsByDatePromise(date){ @@ -28,7 +28,7 @@ class Soccerv3OddsClient extends BaseClient { } /// - /// Get In-Game Odds by Date + /// Get In-Game Odds - by Date /// /// The date of the game(s). Examples: 2018-06-20, 2018-06-23. getInGameOddsByDatePromise(date){ @@ -48,11 +48,11 @@ class Soccerv3OddsClient extends BaseClient { } /// - /// Get Pre-Game Odds by Date by Competition + /// Get Pre-Game Odds by Competition - by Date /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. - getPreGameOddsByDateByCompetitionPromise(competition, date){ + getPreGameOddsByCompetitionByDatePromise(competition, date){ var parameters = {}; parameters['competition']=competition; parameters['date']=date; @@ -60,14 +60,14 @@ class Soccerv3OddsClient extends BaseClient { } /// - /// Get Sportsbooks (Active) + /// Get Sportsbooks - by Active /// - getSportsbooksActivePromise(){ + getSportsbooksByActivePromise(){ return this.GetPromise('/v3/soccer/odds/{format}/ActiveSportsbooks'); } /// - /// Get Betting Events by Date + /// Get Betting Events - by Date /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2018-11-20, 2018-11-23. @@ -79,7 +79,7 @@ class Soccerv3OddsClient extends BaseClient { } /// - /// Get Betting Events by Season + /// Get Betting Events - by Season /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// Year of the season Examples: 2020, 2021, etc. @@ -91,7 +91,7 @@ class Soccerv3OddsClient extends BaseClient { } /// - /// Get Betting Futures by Season + /// Get Betting Futures - by Season /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// Year of the season Examples: 2020, 2021, etc. @@ -113,7 +113,7 @@ class Soccerv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by Event + /// Get Betting Markets - by Event /// /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. @@ -125,11 +125,11 @@ class Soccerv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by GameID + /// Get Betting Markets - by Game /// /// The GameID of the desired game for which to pull all betting markets (includes outcomes/bets). /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. - getBettingMarketsByGameIDPromise(gameid, include){ + getBettingMarketsByGamePromise(gameid, include){ var parameters = {}; parameters['gameid']=gameid; parameters['include']=include; @@ -137,7 +137,7 @@ class Soccerv3OddsClient extends BaseClient { } /// - /// Get Betting Markets by Market Type + /// Get Betting Markets - by Market Type /// /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). /// The Market Type ID of the desired MarketTypes to pull. Some common types include: 1 for Game Lines, 2 for Player Props, 3 for Team Props, 6 for Game Props @@ -158,11 +158,11 @@ class Soccerv3OddsClient extends BaseClient { } /// - /// Get Betting Player Props by GameID + /// Get Betting Player Props - by Game /// /// The unique GameID of the game in question. /// This parameter indicates which BettingOutcome records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. Important Note: the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: available - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. unlisted - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. - getBettingPlayerPropsByGameIDPromise(gameId, include){ + getBettingPlayerPropsByGamePromise(gameId, include){ var parameters = {}; parameters['gameId']=gameId; parameters['include']=include; @@ -170,7 +170,7 @@ class Soccerv3OddsClient extends BaseClient { } /// - /// Get Period Game Odds By Date + /// Get Period Game Odds - by Date /// /// The date of the game(s). Examples: 2022-03-19 getPeriodGameOddsByDatePromise(date){ @@ -190,11 +190,11 @@ class Soccerv3OddsClient extends BaseClient { } /// - /// Get In-Game Odds by Date by Competition + /// Get In-Game Odds by Competition - by Date /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2018-06-20, 2018-06-23. - getInGameOddsByDateByCompetitionPromise(competition, date){ + getInGameOddsByCompetitionByDatePromise(competition, date){ var parameters = {}; parameters['competition']=competition; parameters['date']=date; @@ -202,17 +202,31 @@ class Soccerv3OddsClient extends BaseClient { } /// - /// Get Period Game Odds By Date By Competition + /// Get Period Game Odds by Competition - by Date /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. - getPeriodGameOddsByDateByCompetitionPromise(competition, date){ + getPeriodGameOddsByCompetitionByDatePromise(competition, date){ var parameters = {}; parameters['competition']=competition; parameters['date']=date; return this.GetPromise('/v3/soccer/odds/{format}/AlternateMarketGameOddsByDateByCompetition/{competition}/{date}', parameters); } + /// + /// Get Betting Futures by Season by Sportsbook Group + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// Year of the season Examples: 2020, 2021, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingFuturesBySeasonBySportsbookGroupPromise(competition, season, sportsbookgroup){ + var parameters = {}; + parameters['competition']=competition; + parameters['season']=season; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v3/soccer/odds/{format}/BettingFuturesBySeason/{competition}/{season}/{sportsbookgroup}', parameters); + } + } module.exports = Soccerv3OddsClient; diff --git a/Soccer/Soccerv3Projections.js b/Soccer/Soccerv3Projections.js index 5c4fa89..3269890 100644 --- a/Soccer/Soccerv3Projections.js +++ b/Soccer/Soccerv3Projections.js @@ -8,7 +8,7 @@ class Soccerv3ProjectionsClient extends BaseClient { } /// - /// Get Projected Player Game Stats by Competition (w/ DFS Salaries) + /// Get Projected Player Game Stats - by Competition /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. @@ -20,7 +20,7 @@ class Soccerv3ProjectionsClient extends BaseClient { } /// - /// Get Projected Player Game Stats by Date (w/ DFS Salaries) + /// Get Projected Player Game Stats - by Date /// /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. getProjectedPlayerGameStatsByDatePromise(date){ @@ -30,7 +30,7 @@ class Soccerv3ProjectionsClient extends BaseClient { } /// - /// Get Projected Player Game Stats by Player (w/ DFS Salaries) + /// Get Projected Player Game Stats - by Player /// /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. /// Unique FantasyData Player ID. Example:90026231. diff --git a/Soccer/Soccerv3Stats.js b/Soccer/Soccerv3Stats.js index 2f233db..fb017bd 100644 --- a/Soccer/Soccerv3Stats.js +++ b/Soccer/Soccerv3Stats.js @@ -347,6 +347,32 @@ class Soccerv3StatsClient extends BaseClient { return this.GetPromise('/v3/soccer/stats/{format}/UpcomingDfsSlatesByCompetition/{competitionId}', parameters); } + /// + /// Get Player Game Stats by Date Final + /// + /// + /// + getPlayerGameStatsByDateFinalPromise(competition, date){ + var parameters = {}; + parameters['competition']=competition; + parameters['date']=date; + return this.GetPromise('/v3/soccer/stats/{format}/PlayerGameStatsByDateFinal/{competition}/{date}', parameters); + } + + /// + /// Get Team Game Stats by Date Final + /// + /// + /// + /// + getTeamGameStatsByDateFinalPromise(compeitition, date, competition){ + var parameters = {}; + parameters['compeitition']=compeitition; + parameters['date']=date; + parameters['competition']=competition; + return this.GetPromise('/v3/soccer/stats/{format}/TeamGameStatsByDateFinal/{competition}/{date}', parameters); + } + } module.exports = Soccerv3StatsClient; diff --git a/Soccer/Soccerv4Odds.js b/Soccer/Soccerv4Odds.js index 596c728..c59a777 100644 --- a/Soccer/Soccerv4Odds.js +++ b/Soccer/Soccerv4Odds.js @@ -8,7 +8,7 @@ class Soccerv4OddsClient extends BaseClient { } /// - /// Get Betting Events by Date + /// Get Betting Events - by Date /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2018-11-20, 2018-11-23. @@ -20,7 +20,7 @@ class Soccerv4OddsClient extends BaseClient { } /// - /// Get Betting Events by Season + /// Get Betting Events - by Season /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// Year of the season Examples: 2020, 2021, etc. @@ -32,7 +32,7 @@ class Soccerv4OddsClient extends BaseClient { } /// - /// Get Betting Futures by Season + /// Get Betting Futures - by Season /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// Year of the season Examples: 2020, 2021, etc. @@ -56,7 +56,7 @@ class Soccerv4OddsClient extends BaseClient { } /// - /// Get Betting Markets by Event + /// Get Betting Markets - by Event /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). @@ -68,11 +68,11 @@ class Soccerv4OddsClient extends BaseClient { } /// - /// Get Betting Markets by GameID + /// Get Betting Markets - by Game /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The GameID of the desired game for which to pull all betting markets (includes outcomes/bets). - getBettingMarketsByGameIDPromise(competition, gameid){ + getBettingMarketsByGamePromise(competition, gameid){ var parameters = {}; parameters['competition']=competition; parameters['gameid']=gameid; @@ -80,7 +80,7 @@ class Soccerv4OddsClient extends BaseClient { } /// - /// Get Betting Markets by Market Type + /// Get Betting Markets - by Market Type /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). @@ -101,11 +101,11 @@ class Soccerv4OddsClient extends BaseClient { } /// - /// Get Betting Player Props by GameID + /// Get Betting Player Props - by Game /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The unique GameID of the game in question. - getBettingPlayerPropsByGameIDPromise(competition, gameId){ + getBettingPlayerPropsByGamePromise(competition, gameId){ var parameters = {}; parameters['competition']=competition; parameters['gameId']=gameId; @@ -113,11 +113,11 @@ class Soccerv4OddsClient extends BaseClient { } /// - /// Get In-Game Odds by Date by Competition + /// Get In-Game Odds - by Date /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2018-06-20, 2018-06-23. - getInGameOddsByDateByCompetitionPromise(competition, date){ + getInGameOddsByDatePromise(competition, date){ var parameters = {}; parameters['competition']=competition; parameters['date']=date; @@ -137,11 +137,11 @@ class Soccerv4OddsClient extends BaseClient { } /// - /// Get Period Game Odds By Date By Competition + /// Get Period Game Odds - by Date /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. - getPeriodGameOddsByDateByCompetitionPromise(competition, date){ + getPeriodGameOddsByDatePromise(competition, date){ var parameters = {}; parameters['competition']=competition; parameters['date']=date; @@ -161,11 +161,11 @@ class Soccerv4OddsClient extends BaseClient { } /// - /// Get Pre-Game Odds by Date by Competition + /// Get Pre-Game Odds - by Date /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. - getPreGameOddsByDateByCompetitionPromise(competition, date){ + getPreGameOddsByDatePromise(competition, date){ var parameters = {}; parameters['competition']=competition; parameters['date']=date; @@ -185,12 +185,182 @@ class Soccerv4OddsClient extends BaseClient { } /// - /// Get Sportsbooks (Active) + /// Get Sportsbooks - by Active /// - getSportsbooksActivePromise(){ + getSportsbooksByActivePromise(){ return this.GetPromise('/v4/soccer/odds/{format}/ActiveSportsbooks'); } + /// + /// Get Betting Futures - by Season [Sportsbook Group] + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// Year of the season Examples: 2020, 2021, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingFuturesBySeasonSportsbookGroupPromise(competition, season, sportsbookgroup){ + var parameters = {}; + parameters['competition']=competition; + parameters['season']=season; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v4/soccer/odds/{format}/BettingFuturesBySeason/{competition}/{season}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Market [Sportsbook Group] + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// The MarketId of the desired market for which to pull all outcomes/bets. + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingMarketSportsbookGroupPromise(competition, marketId, sportsbookgroup){ + var parameters = {}; + parameters['competition']=competition; + parameters['marketId']=marketId; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v4/soccer/odds/{format}/BettingMarket/{competition}/{marketId}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Event [Sportsbook Group] + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingMarketsByEventSportsbookGroupPromise(competition, eventId, sportsbookgroup){ + var parameters = {}; + parameters['competition']=competition; + parameters['eventId']=eventId; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v4/soccer/odds/{format}/BettingMarketsByEvent/{competition}/{eventId}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Game [Sportsbook Group] + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// The GameID of the desired game for which to pull all betting markets (includes outcomes/bets). + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingMarketsByGameSportsbookGroupPromise(competition, gameid, sportsbookgroup){ + var parameters = {}; + parameters['competition']=competition; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v4/soccer/odds/{format}/BettingMarketsByGameID/{competition}/{gameid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Markets - by Market Type [Sportsbook Group] + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets). + /// The Market Type ID of the desired MarketTypes to pull. Some common types include: 1 for Game Lines, 2 for Player Props, 3 for Team Props, 6 for Game Props + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingMarketsByMarketTypeSportsbookGroupPromise(competition, eventId, marketTypeID, sportsbookgroup){ + var parameters = {}; + parameters['competition']=competition; + parameters['eventId']=eventId; + parameters['marketTypeID']=marketTypeID; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v4/soccer/odds/{format}/BettingMarketsByMarketType/{competition}/{eventId}/{marketTypeID}/{sportsbookgroup}', parameters); + } + + /// + /// Get Betting Player Props - by Game [Sportsbook Group] + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// The unique GameID of the game in question. + /// The name of the Sportsbook grouping. Examples: G1100 + getBettingPlayerPropsByGameSportsbookGroupPromise(competition, gameId, sportsbookgroup){ + var parameters = {}; + parameters['competition']=competition; + parameters['gameId']=gameId; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v4/soccer/odds/{format}/BettingPlayerPropsByGameID/{competition}/{gameId}/{sportsbookgroup}', parameters); + } + + /// + /// Get In-Game Odds - by Date [Sportsbook Group] + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// The date of the game(s). Examples: 2018-06-20, 2018-06-23. + /// The name of the Sportsbook grouping. Examples: G1100 + getInGameOddsByDateSportsbookGroupPromise(competition, date, sportsbookgroup){ + var parameters = {}; + parameters['competition']=competition; + parameters['date']=date; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v4/soccer/odds/{format}/InGameOddsByDate/{competition}/{date}/{sportsbookgroup}', parameters); + } + + /// + /// Get In-Game Odds Line Movement [Sportsbook Group] + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// The GameID of a Soccer game. GameIDs can be found in the Games API. Valid entries are 14060, 14061, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getInGameOddsLineMovementSportsbookGroupPromise(competition, gameid, sportsbookgroup){ + var parameters = {}; + parameters['competition']=competition; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v4/soccer/odds/{format}/InGameOddsLineMovement/{competition}/{gameid}/{sportsbookgroup}', parameters); + } + + /// + /// Get In-Game Odds Line Movement with Resulting [Sportsbook Group] + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// The GameID of a Soccer game. GameIDs can be found in the Games API. Valid entries are 14060, 14061, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getInGameOddsLineMovementWithResultingSportsbookGroupPromise(competition, gameid, sportsbookgroup){ + var parameters = {}; + parameters['competition']=competition; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v4/soccer/odds/{format}/InGameOddsLineMovementWithResulting/{competition}/{gameid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds - by Date [Sportsbook Group] + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. + /// The name of the Sportsbook grouping. Examples: G1100 + getPreGameAndPeriodGameOddsByDateSportsbookGroupPromise(competition, date, sportsbookgroup){ + var parameters = {}; + parameters['competition']=competition; + parameters['date']=date; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v4/soccer/odds/{format}/PreGameOddsByDate/{competition}/{date}/{sportsbookgroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds Line Movement [Sportsbook Group] + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// The GameID of a Soccer game. GameIDs can be found in the Games API. Valid entries are 14060, 14061, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getPreGameAndPeriodGameOddsLineMovementSportsbookGroupPromise(competition, gameid, sportsbookgroup){ + var parameters = {}; + parameters['competition']=competition; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v4/soccer/odds/{format}/PreGameOddsLineMovement/{competition}/{gameid}/{sportsbookgroup}', parameters); + } + + /// + /// Get Pre-Game and Period Game Odds Line Movement with Resulting [Sportsbook Group] + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// The GameID of a Soccer game. GameIDs can be found in the Games API. Valid entries are 14060, 14061, etc. + /// The name of the Sportsbook grouping. Examples: G1100 + getPreGameAndPeriodGameOddsLineMovementWithResultingSportsbookGroupPromise(competition, gameid, sportsbookgroup){ + var parameters = {}; + parameters['competition']=competition; + parameters['gameid']=gameid; + parameters['sportsbookgroup']=sportsbookgroup; + return this.GetPromise('/v4/soccer/odds/{format}/PreGameOddsLineMovementWithResulting/{competition}/{gameid}/{sportsbookgroup}', parameters); + } + } module.exports = Soccerv4OddsClient; diff --git a/Soccer/Soccerv4Projections.js b/Soccer/Soccerv4Projections.js index 95d16bc..67a6399 100644 --- a/Soccer/Soccerv4Projections.js +++ b/Soccer/Soccerv4Projections.js @@ -8,11 +8,11 @@ class Soccerv4ProjectionsClient extends BaseClient { } /// - /// Get Dfs Slates By Date + /// Get DFS Slates - by Date /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2020-02-18 - getDfsSlatesByDatePromise(competition, date){ + getDFSSlatesByDatePromise(competition, date){ var parameters = {}; parameters['competition']=competition; parameters['date']=date; @@ -20,17 +20,17 @@ class Soccerv4ProjectionsClient extends BaseClient { } /// - /// Get Injured Players By Competition + /// Get Player Details - by Injured /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. - getInjuredPlayersByCompetitionPromise(competition){ + getPlayerDetailsByInjuredPromise(competition){ var parameters = {}; parameters['competition']=competition; return this.GetPromise('/v4/soccer/projections/{format}/InjuredPlayers/{competition}', parameters); } /// - /// Get Projected Player Game Stats by Date (w/ DFS Salaries) + /// Get Projected Player Game Stats - by Date /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. @@ -42,10 +42,10 @@ class Soccerv4ProjectionsClient extends BaseClient { } /// - /// Get Upcoming Dfs Slates By Competition + /// Get Upcoming DFS Slates - by Competition /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. - getUpcomingDfsSlatesByCompetitionPromise(competition){ + getUpcomingDFSSlatesByCompetitionPromise(competition){ var parameters = {}; parameters['competition']=competition; return this.GetPromise('/v4/soccer/projections/{format}/UpcomingDfsSlatesByCompetition/{competition}', parameters); diff --git a/Soccer/Soccerv4Scores.js b/Soccer/Soccerv4Scores.js index 4060622..d46664f 100644 --- a/Soccer/Soccerv4Scores.js +++ b/Soccer/Soccerv4Scores.js @@ -15,17 +15,17 @@ class Soccerv4ScoresClient extends BaseClient { } /// - /// Get Canceled Memberships + /// Get Memberships - by Canceled /// - getCanceledMembershipsPromise(){ + getMembershipsByCanceledPromise(){ return this.GetPromise('/v4/soccer/scores/{format}/CanceledMemberships'); } /// - /// Get Competition Fixtures (League Details) + /// Get Games - by Competition [Live & Final] /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. - getCompetitionFixturesLeagueDetailsPromise(competition){ + getGamesByCompetitionLiveFinalPromise(competition){ var parameters = {}; parameters['competition']=competition; return this.GetPromise('/v4/soccer/scores/{format}/CompetitionDetails/{competition}', parameters); @@ -39,11 +39,11 @@ class Soccerv4ScoresClient extends BaseClient { } /// - /// Get Games by Date - Legacy + /// Get Games - by Date [Live & Final] /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. - getGamesByDateLegacyPromise(competition, date){ + getGamesByDateLiveFinalPromise(competition, date){ var parameters = {}; parameters['competition']=competition; parameters['date']=date; @@ -51,21 +51,21 @@ class Soccerv4ScoresClient extends BaseClient { } /// - /// Get Memberships (Active) + /// Get Memberships - by Active /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. - getMembershipsActivePromise(competition){ + getMembershipsByActivePromise(competition){ var parameters = {}; parameters['competition']=competition; return this.GetPromise('/v4/soccer/scores/{format}/ActiveMemberships/{competition}', parameters); } /// - /// Get Memberships (Recently Changed) + /// Get Memberships - by Recently Changed /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The number of days since memberships were updated. For example, if you pass 3, you'll receive all memberships that have been updated in the past 3 days. Valid entries are: 1, 2 ... 30 - getMembershipsRecentlyChangedPromise(competition, days){ + getMembershipsByRecentlyChangedPromise(competition, days){ var parameters = {}; parameters['competition']=competition; parameters['days']=days; @@ -73,11 +73,11 @@ class Soccerv4ScoresClient extends BaseClient { } /// - /// Get Memberships by Team (Historical) + /// Get Memberships Historical - by Team /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// Unique FantasyData Team ID. Example:516. - getMembershipsByTeamHistoricalPromise(competition, teamid){ + getMembershipsHistoricalByTeamPromise(competition, teamid){ var parameters = {}; parameters['competition']=competition; parameters['teamid']=teamid; @@ -85,11 +85,11 @@ class Soccerv4ScoresClient extends BaseClient { } /// - /// Get Players by Team - Legacy + /// Get Player Details - by Team /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// Unique FantasyData Team ID. Example:516. - getPlayersByTeamLegacyPromise(competition, teamid){ + getPlayerDetailsByTeamPromise(competition, teamid){ var parameters = {}; parameters['competition']=competition; parameters['teamid']=teamid; @@ -97,11 +97,11 @@ class Soccerv4ScoresClient extends BaseClient { } /// - /// Get Schedule - Legacy + /// Get Schedules /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// Year of the season Examples: 2020, 2021, etc. - getScheduleLegacyPromise(competition, season){ + getSchedulesPromise(competition, season){ var parameters = {}; parameters['competition']=competition; parameters['season']=season; @@ -109,11 +109,11 @@ class Soccerv4ScoresClient extends BaseClient { } /// - /// Get Season Teams + /// Get Team Profiles - by Season /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// Unique FantasyData Season ID. SeasonIDs can be found in the Competition Hierarchy (League Hierarchy). Examples: 1, 2, 3, etc - getSeasonTeamsPromise(competition, seasonid){ + getTeamProfilesBySeasonPromise(competition, seasonid){ var parameters = {}; parameters['competition']=competition; parameters['seasonid']=seasonid; @@ -133,11 +133,11 @@ class Soccerv4ScoresClient extends BaseClient { } /// - /// Get Team Game Stats by Date + /// Get Team Game Stats - by Date [Live & Final] /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. - getTeamGameStatsByDatePromise(competition, date){ + getTeamGameStatsByDateLiveFinalPromise(competition, date){ var parameters = {}; parameters['competition']=competition; parameters['date']=date; @@ -157,10 +157,10 @@ class Soccerv4ScoresClient extends BaseClient { } /// - /// Get Teams + /// Get Team Profiles - by Competition /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. - getTeamsPromise(competition){ + getTeamProfilesByCompetitionPromise(competition){ var parameters = {}; parameters['competition']=competition; return this.GetPromise('/v4/soccer/scores/{format}/Teams/{competition}', parameters); @@ -174,11 +174,11 @@ class Soccerv4ScoresClient extends BaseClient { } /// - /// Get Scores by Date + /// Get Games - by Date [Live & Final] /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. - getScoresByDatePromise(competition, date){ + getGamesByDateLiveFinal_1431Promise(competition, date){ var parameters = {}; parameters['competition']=competition; parameters['date']=date; @@ -186,11 +186,11 @@ class Soccerv4ScoresClient extends BaseClient { } /// - /// Get Players by Team + /// Get Player Profiles - by Team /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// Unique FantasyData Team ID. Example:516. - getPlayersByTeamPromise(competition, teamid){ + getPlayerProfilesByTeamPromise(competition, teamid){ var parameters = {}; parameters['competition']=competition; parameters['teamid']=teamid; @@ -198,17 +198,41 @@ class Soccerv4ScoresClient extends BaseClient { } /// - /// Get Schedule + /// Get Schedules (Basic) /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// Year of the season Examples: 2020, 2021, etc. - getSchedulePromise(competition, season){ + getSchedulesBasicPromise(competition, season){ var parameters = {}; parameters['competition']=competition; parameters['season']=season; return this.GetPromise('/v4/soccer/scores/{format}/SchedulesBasic/{competition}/{season}', parameters); } + /// + /// Get Games - by Date [Final] + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. + getGamesByDateFinalPromise(competition, date){ + var parameters = {}; + parameters['competition']=competition; + parameters['date']=date; + return this.GetPromise('/v4/soccer/scores/{format}/GamesByDateFinal/{competition}/{date}', parameters); + } + + /// + /// Get Games (Basic) - by Date [Final] + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. + getGamesBasicByDateFinalPromise(competition, date){ + var parameters = {}; + parameters['competition']=competition; + parameters['date']=date; + return this.GetPromise('/v4/soccer/scores/{format}/ScoresBasicFinal/{competition}/{date}', parameters); + } + } module.exports = Soccerv4ScoresClient; diff --git a/Soccer/Soccerv4Stats.js b/Soccer/Soccerv4Stats.js index 92e6031..d697b9d 100644 --- a/Soccer/Soccerv4Stats.js +++ b/Soccer/Soccerv4Stats.js @@ -15,11 +15,11 @@ class Soccerv4StatsClient extends BaseClient { } /// - /// Get Box Score + /// Get Box Score [Live & Final] /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The GameID of a Soccer game. GameIDs can be found in the Games API. Valid entries are 702, 1274, etc. - getBoxScorePromise(competition, gameid){ + getBoxScoreLiveFinalPromise(competition, gameid){ var parameters = {}; parameters['competition']=competition; parameters['gameid']=gameid; @@ -27,11 +27,11 @@ class Soccerv4StatsClient extends BaseClient { } /// - /// Get Box Scores by Date + /// Get Box Scores - by Date [Live & Final] /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. - getBoxScoresByDatePromise(competition, date){ + getBoxScoresByDateLiveFinalPromise(competition, date){ var parameters = {}; parameters['competition']=competition; parameters['date']=date; @@ -39,12 +39,12 @@ class Soccerv4StatsClient extends BaseClient { } /// - /// Get Box Scores by Date Delta + /// Get Box Scores Delta - by Date /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. /// Only returns player statistics that have changed in the last X minutes. You specify how many minutes in time to go back. Valid entries are: 1, 2 ... all. - getBoxScoresByDateDeltaPromise(competition, date, minutes){ + getBoxScoresDeltaByDatePromise(competition, date, minutes){ var parameters = {}; parameters['competition']=competition; parameters['date']=date; @@ -53,10 +53,10 @@ class Soccerv4StatsClient extends BaseClient { } /// - /// Get Competition Fixtures (League Details) + /// Get Games - by Competition /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. - getCompetitionFixturesLeagueDetailsPromise(competition){ + getGamesByCompetitionPromise(competition){ var parameters = {}; parameters['competition']=competition; return this.GetPromise('/v4/soccer/stats/{format}/CompetitionDetails/{competition}', parameters); @@ -70,11 +70,11 @@ class Soccerv4StatsClient extends BaseClient { } /// - /// Get Dfs Slates By Date + /// Get DFS Slates - by Date /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2020-02-18 - getDfsSlatesByDatePromise(competition, date){ + getDFSSlatesByDatePromise(competition, date){ var parameters = {}; parameters['competition']=competition; parameters['date']=date; @@ -82,11 +82,11 @@ class Soccerv4StatsClient extends BaseClient { } /// - /// Get Games by Date + /// Get Games - by Date [Live & Final] /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. - getGamesByDatePromise(competition, date){ + getGamesByDateLiveFinalPromise(competition, date){ var parameters = {}; parameters['competition']=competition; parameters['date']=date; @@ -94,21 +94,21 @@ class Soccerv4StatsClient extends BaseClient { } /// - /// Get Memberships (Active) + /// Get Memberships - by Active /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. - getMembershipsActivePromise(competition){ + getMembershipsByActivePromise(competition){ var parameters = {}; parameters['competition']=competition; return this.GetPromise('/v4/soccer/stats/{format}/ActiveMemberships/{competition}', parameters); } /// - /// Get Memberships (Recently Changed) + /// Get Memberships - by Recently Changed /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The number of days since memberships were updated. For example, if you pass 3, you'll receive all memberships that have been updated in the past 3 days. Valid entries are: 1, 2 ... 30 - getMembershipsRecentlyChangedPromise(competition, days){ + getMembershipsByRecentlyChangedPromise(competition, days){ var parameters = {}; parameters['competition']=competition; parameters['days']=days; @@ -116,11 +116,11 @@ class Soccerv4StatsClient extends BaseClient { } /// - /// Get Memberships by Team (Historical) + /// Get Memberships Historical - By Team /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// Unique FantasyData Team ID. Example:516. - getMembershipsByTeamHistoricalPromise(competition, teamid){ + getMembershipsHistoricalByTeamPromise(competition, teamid){ var parameters = {}; parameters['competition']=competition; parameters['teamid']=teamid; @@ -128,11 +128,11 @@ class Soccerv4StatsClient extends BaseClient { } /// - /// Get Player Game Stats by Date + /// Get Player Game Stats - by Date [Live & Final] /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. - getPlayerGameStatsByDatePromise(competition, date){ + getPlayerGameStatsByDateLiveFinalPromise(competition, date){ var parameters = {}; parameters['competition']=competition; parameters['date']=date; @@ -152,11 +152,11 @@ class Soccerv4StatsClient extends BaseClient { } /// - /// Get Players by Team + /// Get Player Details - by Team /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// Unique FantasyData Team ID. Example:516. - getPlayersByTeamPromise(competition, teamid){ + getPlayerDetailsByTeamPromise(competition, teamid){ var parameters = {}; parameters['competition']=competition; parameters['teamid']=teamid; @@ -164,11 +164,11 @@ class Soccerv4StatsClient extends BaseClient { } /// - /// Get Schedule + /// Get Schedules /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// Year of the season Examples: 2020, 2021, etc. - getSchedulePromise(competition, season){ + getSchedulesPromise(competition, season){ var parameters = {}; parameters['competition']=competition; parameters['season']=season; @@ -176,11 +176,11 @@ class Soccerv4StatsClient extends BaseClient { } /// - /// Get Season Teams + /// Get Team Profiles - by Season /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// Unique FantasyData Season ID. SeasonIDs can be found in the Competition Hierarchy (League Hierarchy). Examples: 1, 2, 3, etc - getSeasonTeamsPromise(competition, seasonid){ + getTeamProfilesBySeasonPromise(competition, seasonid){ var parameters = {}; parameters['competition']=competition; parameters['seasonid']=seasonid; @@ -200,11 +200,11 @@ class Soccerv4StatsClient extends BaseClient { } /// - /// Get Team Game Stats by Date + /// Get Team Game Stats - by Date [Live & Final] /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. - getTeamGameStatsByDatePromise(competition, date){ + getTeamGameStatsByDateLiveFinalPromise(competition, date){ var parameters = {}; parameters['competition']=competition; parameters['date']=date; @@ -224,20 +224,20 @@ class Soccerv4StatsClient extends BaseClient { } /// - /// Get Teams + /// Get Team Profiles - by Competition /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. - getTeamsPromise(competition){ + getTeamProfilesByCompetitionPromise(competition){ var parameters = {}; parameters['competition']=competition; return this.GetPromise('/v4/soccer/stats/{format}/Teams/{competition}', parameters); } /// - /// Get Upcoming Dfs Slates By Competition + /// Get Upcoming DFS Slates - by Competition /// /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. - getUpcomingDfsSlatesByCompetitionPromise(competition){ + getUpcomingDFSSlatesByCompetitionPromise(competition){ var parameters = {}; parameters['competition']=competition; return this.GetPromise('/v4/soccer/stats/{format}/UpcomingDfsSlatesByCompetition/{competition}', parameters); @@ -250,6 +250,78 @@ class Soccerv4StatsClient extends BaseClient { return this.GetPromise('/v4/soccer/stats/{format}/Venues'); } + /// + /// Get Box Score [Final] + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// The GameID of a Soccer game. GameIDs can be found in the Games API. Valid entries are 702, 1274, etc. + getBoxScoreFinalPromise(competition, gameid){ + var parameters = {}; + parameters['competition']=competition; + parameters['gameid']=gameid; + return this.GetPromise('/v4/soccer/stats/{format}/BoxScoreFinal/{competition}/{gameid}', parameters); + } + + /// + /// Get Box Scores - by Date [Final] + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. + getBoxScoresByDateFinalPromise(competition, date){ + var parameters = {}; + parameters['competition']=competition; + parameters['date']=date; + return this.GetPromise('/v4/soccer/stats/{format}/BoxScoresFinal/{competition}/{date}', parameters); + } + + /// + /// Get Lineups - by Date + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. + getLineupsByDatePromise(competition, date){ + var parameters = {}; + parameters['competition']=competition; + parameters['date']=date; + return this.GetPromise('/v4/soccer/stats/{format}/LineupsByDate/{competition}/{date}', parameters); + } + + /// + /// Get Player Game Stats - by Date [Final] + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. + getPlayerGameStatsByDateFinalPromise(competition, date){ + var parameters = {}; + parameters['competition']=competition; + parameters['date']=date; + return this.GetPromise('/v4/soccer/stats/{format}/PlayerGameStatsByDateFinal/{competition}/{date}', parameters); + } + + /// + /// Get Team Game Stats - by Date [Final] + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. + getTeamGameStatsByDateFinalPromise(competition, date){ + var parameters = {}; + parameters['competition']=competition; + parameters['date']=date; + return this.GetPromise('/v4/soccer/stats/{format}/TeamGameStatsByDateFinal/{competition}/{date}', parameters); + } + + /// + /// Get Fantasy Points - by Date + /// + /// An indication of a soccer competition/league. This value can be the CompetitionId or the Competition Key. Possible values include: EPL, 1, MLS, 8, etc. + /// The date of the game(s). Examples: 2017-02-27, 2017-09-01. + getFantasyPointsByDatePromise(competition, date){ + var parameters = {}; + parameters['competition']=competition; + parameters['date']=date; + return this.GetPromise('/v4/soccer/stats/{format}/FantasyGameStatsByDate/{competition}/{date}', parameters); + } + } module.exports = Soccerv4StatsClient; diff --git a/Tennis/Tennisv3Odds.js b/Tennis/Tennisv3Odds.js index 7354818..91e869a 100644 --- a/Tennis/Tennisv3Odds.js +++ b/Tennis/Tennisv3Odds.js @@ -8,7 +8,7 @@ class Tennisv3OddsClient extends BaseClient { } /// - /// Get Match Odds by Date + /// Get Match Odds - by Date /// /// The date for which to pull matches. Ex: 2023-01-03 getMatchOddsByDatePromise(date){ @@ -18,11 +18,11 @@ class Tennisv3OddsClient extends BaseClient { } /// - /// Get Match Odds by Date and Season + /// Get Match Odds by Season - by Date /// /// The SeasonId for which to filter data. Example: 27 /// The date for which to pull matches. Ex: 2023-01-03 - getMatchOddsByDateAndSeasonPromise(seasonid, date){ + getMatchOddsBySeasonByDatePromise(seasonid, date){ var parameters = {}; parameters['seasonid']=seasonid; parameters['date']=date; @@ -40,9 +40,9 @@ class Tennisv3OddsClient extends BaseClient { } /// - /// Get Sportsbooks (Active) + /// Get Sportsbooks - by Active /// - getSportsbooksActivePromise(){ + getSportsbooksByActivePromise(){ return this.GetPromise('/v3/tennis/odds/{format}/ActiveSportsbooks'); } diff --git a/Tennis/Tennisv3Scores.js b/Tennis/Tennisv3Scores.js index 826d640..f255151 100644 --- a/Tennis/Tennisv3Scores.js +++ b/Tennis/Tennisv3Scores.js @@ -15,7 +15,7 @@ class Tennisv3ScoresClient extends BaseClient { } /// - /// Get Contestants by Season + /// Get Contestants - by Season /// /// The SeasonId for which to pull Contestants. Ex: 27 getContestantsBySeasonPromise(seasonid){ @@ -25,12 +25,12 @@ class Tennisv3ScoresClient extends BaseClient { } /// - /// Get Contestants by Season and Discipline and Gender + /// Get Contestants by Discipline and Gender - by Season /// /// The SeasonId for which to pull Contestants. Ex: 27 /// The Discipline for which to pull Contestants. Valid Entries are 1, 2, 3, singles, doubles, mixed . /// The Gender for which to pull Contestants. Valid entries are m, male, men, f, female, women, mixed . - getContestantsBySeasonAndDisciplineAndGenderPromise(seasonid, discipline, gender){ + getContestantsByDisciplineAndGenderBySeasonPromise(seasonid, discipline, gender){ var parameters = {}; parameters['seasonid']=seasonid; parameters['discipline']=discipline; @@ -46,31 +46,31 @@ class Tennisv3ScoresClient extends BaseClient { } /// - /// Get Match Details + /// Get Scores - by Match [Live & Final] /// /// The MatchId for which to pull details. Ex: 2 - getMatchDetailsPromise(matchid){ + getScoresByMatchLiveFinalPromise(matchid){ var parameters = {}; parameters['matchid']=matchid; return this.GetPromise('/v3/tennis/scores/{format}/Match/{matchid}', parameters); } /// - /// Get Matches by Round (Schedule) + /// Get Schedule by Matches - by Round /// /// The RoundId for which to pull the schedule. Ex. 1 - getMatchesByRoundSchedulePromise(roundid){ + getScheduleByMatchesByRoundPromise(roundid){ var parameters = {}; parameters['roundid']=roundid; return this.GetPromise('/v3/tennis/scores/{format}/MatchesByRound/{roundid}', parameters); } /// - /// Get Matches by Season and Date + /// Get Schedule by Season - by Date /// /// The SeasonId for which to pull matches. Ex: 27 /// The date for which to pull matches. Ex: 2022-06-03 - getMatchesBySeasonAndDatePromise(seasonid, date){ + getScheduleBySeasonByDatePromise(seasonid, date){ var parameters = {}; parameters['seasonid']=seasonid; parameters['date']=date; @@ -78,28 +78,28 @@ class Tennisv3ScoresClient extends BaseClient { } /// - /// Get Player Details + /// Get Player Profile /// /// The unique PlayerId of the player to pull details. Ex. 160000001 - getPlayerDetailsPromise(playerid){ + getPlayerProfilePromise(playerid){ var parameters = {}; parameters['playerid']=playerid; return this.GetPromise('/v3/tennis/scores/{format}/Player/{playerid}', parameters); } /// - /// Get Players + /// Get Player Profiles - All /// - getPlayersPromise(){ + getPlayerProfilesAllPromise(){ return this.GetPromise('/v3/tennis/scores/{format}/Players'); } /// - /// Get Players by Rank + /// Get Player Profiles - by Rank /// /// The Discipline for which to pull player rankings. Valid Entries are 1, 2, 3, singles, doubles, mixed . /// The gender for which to pull player rankings. Valid entries are m, male, men, f, female, women, mixed . - getPlayersByRankPromise(discipline, gender){ + getPlayerProfilesByRankPromise(discipline, gender){ var parameters = {}; parameters['discipline']=discipline; parameters['gender']=gender; @@ -107,7 +107,7 @@ class Tennisv3ScoresClient extends BaseClient { } /// - /// Get Rounds by Season + /// Get Rounds - by Season /// /// The SeasonID for which to pull Round records. Ex: 27 getRoundsBySeasonPromise(seasonid){ @@ -117,7 +117,7 @@ class Tennisv3ScoresClient extends BaseClient { } /// - /// Get Seasons by Competition + /// Get Seasons - by Competition /// /// The CompetitionId for which to pull Season records. Ex: 28 getSeasonsByCompetitionPromise(competitionId){ @@ -127,7 +127,7 @@ class Tennisv3ScoresClient extends BaseClient { } /// - /// Get Seasons by Tour Season + /// Get Seasons - by Tour Season /// /// The TourSeasonId for which to pull Seasons by TourSeason. Ex: 1 getSeasonsByTourSeasonPromise(tourSeasonId){ @@ -137,7 +137,7 @@ class Tennisv3ScoresClient extends BaseClient { } /// - /// Get Seasons by Year + /// Get Seasons - by Year /// /// The year for which to pull Season records. Ex: 2022 getSeasonsByYearPromise(year){ @@ -160,6 +160,16 @@ class Tennisv3ScoresClient extends BaseClient { return this.GetPromise('/v3/tennis/scores/{format}/Venues'); } + /// + /// Get Scores - by Match [Final] + /// + /// The MatchId for which to pull details. Ex: 2 + getScoresByMatchFinalPromise(matchid){ + var parameters = {}; + parameters['matchid']=matchid; + return this.GetPromise('/v3/tennis/scores/{format}/MatchFinal/{matchid}', parameters); + } + } module.exports = Tennisv3ScoresClient; diff --git a/WNBA/WNBAv3Scores.js b/WNBA/WNBAv3Scores.js index 8a76f8e..0089b40 100644 --- a/WNBA/WNBAv3Scores.js +++ b/WNBA/WNBAv3Scores.js @@ -15,27 +15,27 @@ class WNBAv3ScoresClient extends BaseClient { } /// - /// Get Current Season + /// Get Season - Current /// - getCurrentSeasonPromise(){ + getSeasonCurrentPromise(){ return this.GetPromise('/v3/wnba/scores/{format}/CurrentSeason'); } /// - /// Get Games by Date + /// Get Games - by Date [Live & Final] /// /// The date of the game(s). Examples: 2019-MAY-16, 2019-MAY-25, etc. - getGamesByDatePromise(date){ + getGamesByDateLiveFinalPromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/wnba/scores/{format}/GamesByDate/{date}', parameters); } /// - /// Get Schedule + /// Get Schedules /// /// Year of the season (with optional season type). Examples: 2019, 2019PRE, 2019POST, 2019REG, etc. - getSchedulePromise(Season){ + getSchedulesPromise(Season){ var parameters = {}; parameters['Season']=Season; return this.GetPromise('/v3/wnba/scores/{format}/Games/{Season}', parameters); @@ -49,14 +49,14 @@ class WNBAv3ScoresClient extends BaseClient { } /// - /// Get Teams + /// Get Team Profiles - All /// - getTeamsPromise(){ + getTeamProfilesAllPromise(){ return this.GetPromise('/v3/wnba/scores/{format}/Teams'); } /// - /// Get Pre-Game Odds by Date + /// Get Pre-Game Odds - by Date /// /// The date of the game(s). Examples: 2019-MAY-16, 2019-MAY-25, etc. getPreGameOddsByDatePromise(date){ @@ -76,12 +76,32 @@ class WNBAv3ScoresClient extends BaseClient { } /// - /// Get Sportsbooks (Active) + /// Get Sportsbooks - by Active /// - getSportsbooksActivePromise(){ + getSportsbooksByActivePromise(){ return this.GetPromise('/v3/wnba/scores/{format}/ActiveSportsbooks'); } + /// + /// Get Games - by Date [Final] + /// + /// The date of the game(s). Examples: 2019-MAY-16, 2019-MAY-25, etc. + getGamesByDateFinalPromise(date){ + var parameters = {}; + parameters['date']=date; + return this.GetPromise('/v3/wnba/scores/{format}/GamesByDateFinal/{date}', parameters); + } + + /// + /// Get Schedules (Basic) + /// + /// Year of the season (with optional season type). Examples: 2019, 2019PRE, 2019POST, 2019REG, etc. + getSchedulesBasicPromise(Season){ + var parameters = {}; + parameters['Season']=Season; + return this.GetPromise('/v3/wnba/scores/{format}/SchedulesBasic/{Season}', parameters); + } + } module.exports = WNBAv3ScoresClient; diff --git a/package.json b/package.json index 33c14bd..71520fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fantasydata-node-client", - "version": "1.7.0", + "version": "1.8.0", "description": "Node.js SDK to interface with FantasyData APIs", "main": "FantasyDataClient.js", "scripts": {