msf_by_game: MySportsFeeds API calls by game

Description Usage Arguments Functions Examples

View source: R/by-game.r

Description

If you provide multiple gameids it will execute with a delay between each query. This is to ensure you obey limit rates but you are free to lower the parameter if you don't think your queries will reach the throttle limits.

Usage

1
2
3
4
5
6
7
msf_by_game(feed, sport, gameid, season = "current", delay = 1)

game_boxscore(sport, gameid, ...)

game_pbp(sport, gameid, ...)

game_starting_lineup(sport, gameid, ...)

Arguments

feed

feed to request

sport

mlb | nfl | nba | etc..

gameid

strings, "40265" or c("40265", "11111") or "20171015-SF-WAS"

season

string, ex. "2017-regular" | "2017-playoff"

delay

number of seconds between queries

...

additional parameters passed to msf_by_game such as season or delay

Functions

Examples

1
2
3
4
5
6
## Not run: 
resp <- game_starting_lineup("nfl", "20171015-SF-WAS")
resp <- game_boxscore("nba", c("20171026-BOS-MIL", "20171109-LAL-WAS"), delay = 3)
resp <- game_pbp("nhl", "20161215-FLO-WPJ", season = "2016-2017-regular")

## End(Not run)

zamorarr/msf documentation built on May 3, 2019, 9:01 p.m.