Skip to content

Commit 21926a9

Browse files
committed
NEW: Added support for team_stats endpoint
ENH: Added *.ipynb to .gitignore VER: 1.2
1 parent a31a84b commit 21926a9

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/logs
22
.vscode
3+
*.ipynb
34

45
# Byte-compiled / optimized / DLL files
56
__pycache__/

statsapi/endpoints.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,6 +1250,36 @@
12501250
"query_params": ["rosterType", "season", "date", "hydrate", "fields"],
12511251
"required_params": [[]],
12521252
},
1253+
"team_stats": {
1254+
"url": BASE_URL + "{ver}/teams/{teamId}/stats",
1255+
"path_params": {
1256+
"ver": {
1257+
"type": "str",
1258+
"default": "v1",
1259+
"leading_slash": False,
1260+
"trailing_slash": False,
1261+
"required": True,
1262+
},
1263+
"teamId": {
1264+
"type": "str",
1265+
"default": None,
1266+
"leading_slash": False,
1267+
"trailing_slash": False,
1268+
"required": True,
1269+
},
1270+
},
1271+
"query_params": [
1272+
"season",
1273+
"group",
1274+
"gameType",
1275+
"stats",
1276+
"sportIds",
1277+
"sitCodes",
1278+
"fields",
1279+
],
1280+
"required_params": [["season", "group"]],
1281+
"note": "Use meta('statGroups') to look up valid values for group, meta('statTypes') for valid values for stats, and meta('situationCodes') for valid values for sitCodes. Use sitCodes with stats=statSplits.",
1282+
},
12531283
"venue": {
12541284
"url": BASE_URL + "{ver}/venues",
12551285
"path_params": {

statsapi/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env python
22

3-
VERSION = "1.1"
3+
VERSION = "1.2"

0 commit comments

Comments
 (0)