Skip to content

Commit f6c1cf2

Browse files
committed
fix(endpoints): missing sportId param on teams
new(endpoints): added transactions ver: 1.4
1 parent 554aa3c commit f6c1cf2

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

statsapi/endpoints.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,7 @@
10571057
"season",
10581058
"activeStatus",
10591059
"leagueIds",
1060+
"sportId",
10601061
"sportIds",
10611062
"gameType",
10621063
"hydrate",
@@ -1281,6 +1282,33 @@
12811282
"required_params": [["season", "group"]],
12821283
"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.",
12831284
},
1285+
"transactions": {
1286+
"url": BASE_URL + "{ver}/transactions",
1287+
"path_params": {
1288+
"ver": {
1289+
"type": "str",
1290+
"default": "v1",
1291+
"leading_slash": False,
1292+
"trailing_slash": False,
1293+
"required": True,
1294+
}
1295+
},
1296+
"query_params": [
1297+
"teamId",
1298+
"playerId",
1299+
"date",
1300+
"startDate",
1301+
"endDate",
1302+
"sportId",
1303+
"fields",
1304+
],
1305+
"required_params": [
1306+
["teamId"],
1307+
["playerId"],
1308+
["date"],
1309+
["startDate", "endDate"],
1310+
],
1311+
},
12841312
"venue": {
12851313
"url": BASE_URL + "{ver}/venues",
12861314
"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.3"
3+
VERSION = "1.4"

0 commit comments

Comments
 (0)