Currently, I'm having to get the schedule for the past 7 days, get the players team id then loop through each game for each date and if the players team played, then we just assume he played. Is there a way to just get a players past 7 games stats in a format of something like
game1: {hits: 3, obp: .529...}
game2: {hits: 0, obp: .222...}
game3: {hits: 1, obp: .311..}
...
and so on?
Currently, I'm having to get the schedule for the past 7 days, get the players team id then loop through each game for each date and if the players team played, then we just assume he played. Is there a way to just get a players past 7 games stats in a format of something like
game1: {hits: 3, obp: .529...} game2: {hits: 0, obp: .222...} game3: {hits: 1, obp: .311..} ... and so on?