toddrob99 / MLB-StatsAPI

Python wrapper for MLB Stats API
GNU General Public License v3.0
547 stars 99 forks source link

Required params for game_diff endpoint don't match query_params (case sensitivity) #31

Closed toddrob99 closed 4 years ago

toddrob99 commented 4 years ago

Query params are startTimecode and endTimecode with lower case c, but required params are listed as startTimeCode and endTimeCode with upper case C.

The API accepts either way, but the wrapper does not make the API call, because it discards unrecognized params if upper case C is used, and fails required param check if lower case c is used.

Use force=True for calls to game_diff endpoint until fix is released.