victorycode-sdk 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- victorycode_sdk/__init__.py +260 -0
- victorycode_sdk/api/__init__.py +13 -0
- victorycode_sdk/api/authentication_api.py +285 -0
- victorycode_sdk/api/classification_api.py +1203 -0
- victorycode_sdk/api/game_recap_api.py +1395 -0
- victorycode_sdk/api/games_api.py +1497 -0
- victorycode_sdk/api/mascot_api.py +1203 -0
- victorycode_sdk/api/plays_events_api.py +1057 -0
- victorycode_sdk/api/teams_api.py +1220 -0
- victorycode_sdk/api/uploads_api.py +872 -0
- victorycode_sdk/api/venue_api.py +1203 -0
- victorycode_sdk/api_client.py +833 -0
- victorycode_sdk/api_response.py +21 -0
- victorycode_sdk/configuration.py +698 -0
- victorycode_sdk/exceptions.py +218 -0
- victorycode_sdk/models/__init__.py +114 -0
- victorycode_sdk/models/add_video_to_game_with_s3_link_dto.py +90 -0
- victorycode_sdk/models/address.py +96 -0
- victorycode_sdk/models/address_dto.py +96 -0
- victorycode_sdk/models/bad_request_error_response_dto.py +90 -0
- victorycode_sdk/models/classification.py +90 -0
- victorycode_sdk/models/client_create_game_with_video_url_dto.py +130 -0
- victorycode_sdk/models/complete_multipart_upload_dto.py +97 -0
- victorycode_sdk/models/complete_multipart_upload_response.py +90 -0
- victorycode_sdk/models/complete_multipart_upload_response_dto.py +94 -0
- victorycode_sdk/models/completed_part_dto.py +90 -0
- victorycode_sdk/models/conflict_error_response_dto.py +90 -0
- victorycode_sdk/models/coordinates.py +90 -0
- victorycode_sdk/models/coordinates_dto.py +90 -0
- victorycode_sdk/models/create_classification_dto.py +90 -0
- victorycode_sdk/models/create_mascot_dto.py +90 -0
- victorycode_sdk/models/create_team_dto.py +108 -0
- victorycode_sdk/models/create_team_response_dto.py +106 -0
- victorycode_sdk/models/create_venue_dto.py +102 -0
- victorycode_sdk/models/defense_section_dto.py +101 -0
- victorycode_sdk/models/defense_stats_dto.py +106 -0
- victorycode_sdk/models/defense_totals_dto.py +100 -0
- victorycode_sdk/models/delete_response_dto.py +90 -0
- victorycode_sdk/models/down_efficiency_dto.py +90 -0
- victorycode_sdk/models/fetch_team_response_dto.py +117 -0
- victorycode_sdk/models/fumble_section_dto.py +101 -0
- victorycode_sdk/models/fumble_stats_dto.py +98 -0
- victorycode_sdk/models/fumble_totals_dto.py +92 -0
- victorycode_sdk/models/game_all_play_list_item_dto.py +106 -0
- victorycode_sdk/models/game_box_score_meta_dto.py +104 -0
- victorycode_sdk/models/game_box_score_response_dto.py +98 -0
- victorycode_sdk/models/game_box_score_teams_dto.py +97 -0
- victorycode_sdk/models/game_details_response.py +108 -0
- victorycode_sdk/models/game_recap_scoring_summary_pro_response.py +101 -0
- victorycode_sdk/models/game_recap_scoring_summary_response.py +101 -0
- victorycode_sdk/models/game_recap_team_stats_response.py +101 -0
- victorycode_sdk/models/game_score_response.py +101 -0
- victorycode_sdk/models/game_scoring_summary_data_dto.py +104 -0
- victorycode_sdk/models/get_parts_presign_url_response.py +88 -0
- victorycode_sdk/models/get_parts_presign_url_response_dto.py +94 -0
- victorycode_sdk/models/initiate_multipart_upload_dto.py +92 -0
- victorycode_sdk/models/initiate_multipart_upload_response.py +88 -0
- victorycode_sdk/models/initiate_multipart_upload_response_dto.py +94 -0
- victorycode_sdk/models/interception_section_dto.py +101 -0
- victorycode_sdk/models/interception_stats_dto.py +98 -0
- victorycode_sdk/models/interception_totals_dto.py +92 -0
- victorycode_sdk/models/kicking_section_dto.py +101 -0
- victorycode_sdk/models/kicking_stats_dto.py +106 -0
- victorycode_sdk/models/kicking_totals_dto.py +100 -0
- victorycode_sdk/models/line_of_scrimmage_dto.py +90 -0
- victorycode_sdk/models/list_classification_paginated_response_dto.py +101 -0
- victorycode_sdk/models/list_game_all_plays_response_dto.py +103 -0
- victorycode_sdk/models/list_games_paginated_response_dto.py +101 -0
- victorycode_sdk/models/list_mascot_paginated_response_dto.py +101 -0
- victorycode_sdk/models/list_play_clips_response_dto.py +105 -0
- victorycode_sdk/models/list_team_paginated_response_dto.py +101 -0
- victorycode_sdk/models/list_venue_paginated_response_dto.py +101 -0
- victorycode_sdk/models/list_video_paginated_response_dto.py +103 -0
- victorycode_sdk/models/mascot.py +90 -0
- victorycode_sdk/models/mascot_response_dto.py +96 -0
- victorycode_sdk/models/not_found_error_response_dto.py +90 -0
- victorycode_sdk/models/offense_dto.py +92 -0
- victorycode_sdk/models/passing_dto.py +98 -0
- victorycode_sdk/models/passing_section_dto.py +101 -0
- victorycode_sdk/models/passing_stats_dto.py +117 -0
- victorycode_sdk/models/passing_totals_dto.py +111 -0
- victorycode_sdk/models/period_score_dto.py +94 -0
- victorycode_sdk/models/play_attributes_list_dto.py +106 -0
- victorycode_sdk/models/play_clip_list_details_dto.py +104 -0
- victorycode_sdk/models/play_clip_list_item_dto.py +104 -0
- victorycode_sdk/models/pro_scoring_play_dto.py +202 -0
- victorycode_sdk/models/receiving_section_dto.py +101 -0
- victorycode_sdk/models/receiving_stats_dto.py +104 -0
- victorycode_sdk/models/receiving_totals_dto.py +98 -0
- victorycode_sdk/models/red_zone_dto.py +90 -0
- victorycode_sdk/models/rushing_dto.py +92 -0
- victorycode_sdk/models/rushing_section_dto.py +101 -0
- victorycode_sdk/models/rushing_stats_dto.py +102 -0
- victorycode_sdk/models/rushing_totals_dto.py +96 -0
- victorycode_sdk/models/scoring_play_player_involved_dto.py +106 -0
- victorycode_sdk/models/scoring_summary_pro_team_dto.py +90 -0
- victorycode_sdk/models/single_classification_response_dto.py +94 -0
- victorycode_sdk/models/single_mascot_response_dto.py +94 -0
- victorycode_sdk/models/single_team_response_dto.py +94 -0
- victorycode_sdk/models/single_venue_response_dto.py +99 -0
- victorycode_sdk/models/single_video_response_dto.py +94 -0
- victorycode_sdk/models/team_basic_info_dto.py +96 -0
- victorycode_sdk/models/team_box_score_dto.py +139 -0
- victorycode_sdk/models/team_score_dto.py +109 -0
- victorycode_sdk/models/team_stats_dto.py +137 -0
- victorycode_sdk/models/token_response.py +92 -0
- victorycode_sdk/models/turnovers_dto.py +92 -0
- victorycode_sdk/models/unauthorized_error_response_dto.py +90 -0
- victorycode_sdk/models/update_classification_dto.py +90 -0
- victorycode_sdk/models/update_mascot_dto.py +90 -0
- victorycode_sdk/models/update_team_dto.py +108 -0
- victorycode_sdk/models/update_venue_dto.py +102 -0
- victorycode_sdk/models/venue.py +102 -0
- victorycode_sdk/models/video_list_item_dto.py +96 -0
- victorycode_sdk/py.typed +0 -0
- victorycode_sdk/rest.py +334 -0
- victorycode_sdk-1.0.0.dist-info/METADATA +288 -0
- victorycode_sdk-1.0.0.dist-info/RECORD +121 -0
- victorycode_sdk-1.0.0.dist-info/WHEEL +5 -0
- victorycode_sdk-1.0.0.dist-info/licenses/LICENSE +21 -0
- victorycode_sdk-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1395 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Victory Code Client API
|
|
3
|
+
|
|
4
|
+
Client APIs for Tactix partners: authenticate, upload game video, and retrieve games, plays, game recaps and team metadata.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
8
|
+
|
|
9
|
+
Do not edit the class manually.
|
|
10
|
+
""" # noqa: E501
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
import warnings
|
|
14
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
15
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
16
|
+
from typing_extensions import Annotated
|
|
17
|
+
|
|
18
|
+
from pydantic import StrictStr
|
|
19
|
+
from victorycode_sdk.models.game_box_score_response_dto import GameBoxScoreResponseDto
|
|
20
|
+
from victorycode_sdk.models.game_recap_scoring_summary_pro_response import GameRecapScoringSummaryProResponse
|
|
21
|
+
from victorycode_sdk.models.game_recap_scoring_summary_response import GameRecapScoringSummaryResponse
|
|
22
|
+
from victorycode_sdk.models.game_recap_team_stats_response import GameRecapTeamStatsResponse
|
|
23
|
+
from victorycode_sdk.models.game_score_response import GameScoreResponse
|
|
24
|
+
|
|
25
|
+
from victorycode_sdk.api_client import ApiClient, RequestSerialized
|
|
26
|
+
from victorycode_sdk.api_response import ApiResponse
|
|
27
|
+
from victorycode_sdk.rest import RESTResponseType
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class GameRecapApi:
|
|
31
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
|
+
Ref: https://openapi-generator.tech
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
def __init__(self, api_client=None) -> None:
|
|
38
|
+
if api_client is None:
|
|
39
|
+
api_client = ApiClient.get_default()
|
|
40
|
+
self.api_client = api_client
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@validate_call
|
|
44
|
+
def get_game_recap_game_box_score(
|
|
45
|
+
self,
|
|
46
|
+
video_id: StrictStr,
|
|
47
|
+
_request_timeout: Union[
|
|
48
|
+
None,
|
|
49
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
50
|
+
Tuple[
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
52
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
53
|
+
]
|
|
54
|
+
] = None,
|
|
55
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
56
|
+
_content_type: Optional[StrictStr] = None,
|
|
57
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
58
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
59
|
+
) -> GameBoxScoreResponseDto:
|
|
60
|
+
"""Get the Game Recap Game Box Score for a specific Game.
|
|
61
|
+
|
|
62
|
+
Retrieves full game box score stats for both teams and players for a specific game.
|
|
63
|
+
|
|
64
|
+
:param video_id: (required)
|
|
65
|
+
:type video_id: str
|
|
66
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
67
|
+
number provided, it will be total request
|
|
68
|
+
timeout. It can also be a pair (tuple) of
|
|
69
|
+
(connection, read) timeouts.
|
|
70
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
71
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
72
|
+
request; this effectively ignores the
|
|
73
|
+
authentication in the spec for a single request.
|
|
74
|
+
:type _request_auth: dict, optional
|
|
75
|
+
:param _content_type: force content-type for the request.
|
|
76
|
+
:type _content_type: str, Optional
|
|
77
|
+
:param _headers: set to override the headers for a single
|
|
78
|
+
request; this effectively ignores the headers
|
|
79
|
+
in the spec for a single request.
|
|
80
|
+
:type _headers: dict, optional
|
|
81
|
+
:param _host_index: set to override the host_index for a single
|
|
82
|
+
request; this effectively ignores the host_index
|
|
83
|
+
in the spec for a single request.
|
|
84
|
+
:type _host_index: int, optional
|
|
85
|
+
:return: Returns the result object.
|
|
86
|
+
""" # noqa: E501
|
|
87
|
+
|
|
88
|
+
_param = self._get_game_recap_game_box_score_serialize(
|
|
89
|
+
video_id=video_id,
|
|
90
|
+
_request_auth=_request_auth,
|
|
91
|
+
_content_type=_content_type,
|
|
92
|
+
_headers=_headers,
|
|
93
|
+
_host_index=_host_index
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
97
|
+
'200': "GameBoxScoreResponseDto",
|
|
98
|
+
'400': "BadRequestErrorResponseDto",
|
|
99
|
+
'401': "UnauthorizedErrorResponseDto",
|
|
100
|
+
'404': "NotFoundErrorResponseDto",
|
|
101
|
+
}
|
|
102
|
+
response_data = self.api_client.call_api(
|
|
103
|
+
*_param,
|
|
104
|
+
_request_timeout=_request_timeout
|
|
105
|
+
)
|
|
106
|
+
response_data.read()
|
|
107
|
+
return self.api_client.response_deserialize(
|
|
108
|
+
response_data=response_data,
|
|
109
|
+
response_types_map=_response_types_map,
|
|
110
|
+
).data
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
@validate_call
|
|
114
|
+
def get_game_recap_game_box_score_with_http_info(
|
|
115
|
+
self,
|
|
116
|
+
video_id: StrictStr,
|
|
117
|
+
_request_timeout: Union[
|
|
118
|
+
None,
|
|
119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
120
|
+
Tuple[
|
|
121
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
122
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
123
|
+
]
|
|
124
|
+
] = None,
|
|
125
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
126
|
+
_content_type: Optional[StrictStr] = None,
|
|
127
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
128
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
129
|
+
) -> ApiResponse[GameBoxScoreResponseDto]:
|
|
130
|
+
"""Get the Game Recap Game Box Score for a specific Game.
|
|
131
|
+
|
|
132
|
+
Retrieves full game box score stats for both teams and players for a specific game.
|
|
133
|
+
|
|
134
|
+
:param video_id: (required)
|
|
135
|
+
:type video_id: str
|
|
136
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
137
|
+
number provided, it will be total request
|
|
138
|
+
timeout. It can also be a pair (tuple) of
|
|
139
|
+
(connection, read) timeouts.
|
|
140
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
141
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
142
|
+
request; this effectively ignores the
|
|
143
|
+
authentication in the spec for a single request.
|
|
144
|
+
:type _request_auth: dict, optional
|
|
145
|
+
:param _content_type: force content-type for the request.
|
|
146
|
+
:type _content_type: str, Optional
|
|
147
|
+
:param _headers: set to override the headers for a single
|
|
148
|
+
request; this effectively ignores the headers
|
|
149
|
+
in the spec for a single request.
|
|
150
|
+
:type _headers: dict, optional
|
|
151
|
+
:param _host_index: set to override the host_index for a single
|
|
152
|
+
request; this effectively ignores the host_index
|
|
153
|
+
in the spec for a single request.
|
|
154
|
+
:type _host_index: int, optional
|
|
155
|
+
:return: Returns the result object.
|
|
156
|
+
""" # noqa: E501
|
|
157
|
+
|
|
158
|
+
_param = self._get_game_recap_game_box_score_serialize(
|
|
159
|
+
video_id=video_id,
|
|
160
|
+
_request_auth=_request_auth,
|
|
161
|
+
_content_type=_content_type,
|
|
162
|
+
_headers=_headers,
|
|
163
|
+
_host_index=_host_index
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
167
|
+
'200': "GameBoxScoreResponseDto",
|
|
168
|
+
'400': "BadRequestErrorResponseDto",
|
|
169
|
+
'401': "UnauthorizedErrorResponseDto",
|
|
170
|
+
'404': "NotFoundErrorResponseDto",
|
|
171
|
+
}
|
|
172
|
+
response_data = self.api_client.call_api(
|
|
173
|
+
*_param,
|
|
174
|
+
_request_timeout=_request_timeout
|
|
175
|
+
)
|
|
176
|
+
response_data.read()
|
|
177
|
+
return self.api_client.response_deserialize(
|
|
178
|
+
response_data=response_data,
|
|
179
|
+
response_types_map=_response_types_map,
|
|
180
|
+
)
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
@validate_call
|
|
184
|
+
def get_game_recap_game_box_score_without_preload_content(
|
|
185
|
+
self,
|
|
186
|
+
video_id: StrictStr,
|
|
187
|
+
_request_timeout: Union[
|
|
188
|
+
None,
|
|
189
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
190
|
+
Tuple[
|
|
191
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
192
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
193
|
+
]
|
|
194
|
+
] = None,
|
|
195
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
196
|
+
_content_type: Optional[StrictStr] = None,
|
|
197
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
198
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
199
|
+
) -> RESTResponseType:
|
|
200
|
+
"""Get the Game Recap Game Box Score for a specific Game.
|
|
201
|
+
|
|
202
|
+
Retrieves full game box score stats for both teams and players for a specific game.
|
|
203
|
+
|
|
204
|
+
:param video_id: (required)
|
|
205
|
+
:type video_id: str
|
|
206
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
207
|
+
number provided, it will be total request
|
|
208
|
+
timeout. It can also be a pair (tuple) of
|
|
209
|
+
(connection, read) timeouts.
|
|
210
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
211
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
212
|
+
request; this effectively ignores the
|
|
213
|
+
authentication in the spec for a single request.
|
|
214
|
+
:type _request_auth: dict, optional
|
|
215
|
+
:param _content_type: force content-type for the request.
|
|
216
|
+
:type _content_type: str, Optional
|
|
217
|
+
:param _headers: set to override the headers for a single
|
|
218
|
+
request; this effectively ignores the headers
|
|
219
|
+
in the spec for a single request.
|
|
220
|
+
:type _headers: dict, optional
|
|
221
|
+
:param _host_index: set to override the host_index for a single
|
|
222
|
+
request; this effectively ignores the host_index
|
|
223
|
+
in the spec for a single request.
|
|
224
|
+
:type _host_index: int, optional
|
|
225
|
+
:return: Returns the result object.
|
|
226
|
+
""" # noqa: E501
|
|
227
|
+
|
|
228
|
+
_param = self._get_game_recap_game_box_score_serialize(
|
|
229
|
+
video_id=video_id,
|
|
230
|
+
_request_auth=_request_auth,
|
|
231
|
+
_content_type=_content_type,
|
|
232
|
+
_headers=_headers,
|
|
233
|
+
_host_index=_host_index
|
|
234
|
+
)
|
|
235
|
+
|
|
236
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
237
|
+
'200': "GameBoxScoreResponseDto",
|
|
238
|
+
'400': "BadRequestErrorResponseDto",
|
|
239
|
+
'401': "UnauthorizedErrorResponseDto",
|
|
240
|
+
'404': "NotFoundErrorResponseDto",
|
|
241
|
+
}
|
|
242
|
+
response_data = self.api_client.call_api(
|
|
243
|
+
*_param,
|
|
244
|
+
_request_timeout=_request_timeout
|
|
245
|
+
)
|
|
246
|
+
return response_data.response
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
def _get_game_recap_game_box_score_serialize(
|
|
250
|
+
self,
|
|
251
|
+
video_id,
|
|
252
|
+
_request_auth,
|
|
253
|
+
_content_type,
|
|
254
|
+
_headers,
|
|
255
|
+
_host_index,
|
|
256
|
+
) -> RequestSerialized:
|
|
257
|
+
|
|
258
|
+
_host = None
|
|
259
|
+
|
|
260
|
+
_collection_formats: Dict[str, str] = {
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
_path_params: Dict[str, str] = {}
|
|
264
|
+
_query_params: List[Tuple[str, str]] = []
|
|
265
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
266
|
+
_form_params: List[Tuple[str, str]] = []
|
|
267
|
+
_files: Dict[
|
|
268
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
269
|
+
] = {}
|
|
270
|
+
_body_params: Optional[bytes] = None
|
|
271
|
+
|
|
272
|
+
# process the path parameters
|
|
273
|
+
if video_id is not None:
|
|
274
|
+
_path_params['videoId'] = video_id
|
|
275
|
+
# process the query parameters
|
|
276
|
+
# process the header parameters
|
|
277
|
+
# process the form parameters
|
|
278
|
+
# process the body parameter
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
# set the HTTP header `Accept`
|
|
282
|
+
if 'Accept' not in _header_params:
|
|
283
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
284
|
+
[
|
|
285
|
+
'application/json'
|
|
286
|
+
]
|
|
287
|
+
)
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
# authentication setting
|
|
291
|
+
_auth_settings: List[str] = [
|
|
292
|
+
'Client-App-Token',
|
|
293
|
+
'Client-App-Id'
|
|
294
|
+
]
|
|
295
|
+
|
|
296
|
+
return self.api_client.param_serialize(
|
|
297
|
+
method='GET',
|
|
298
|
+
resource_path='/api/v1/client/game-recap/{videoId}/game-box-score',
|
|
299
|
+
path_params=_path_params,
|
|
300
|
+
query_params=_query_params,
|
|
301
|
+
header_params=_header_params,
|
|
302
|
+
body=_body_params,
|
|
303
|
+
post_params=_form_params,
|
|
304
|
+
files=_files,
|
|
305
|
+
auth_settings=_auth_settings,
|
|
306
|
+
collection_formats=_collection_formats,
|
|
307
|
+
_host=_host,
|
|
308
|
+
_request_auth=_request_auth
|
|
309
|
+
)
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
@validate_call
|
|
315
|
+
def get_game_recap_score(
|
|
316
|
+
self,
|
|
317
|
+
video_id: StrictStr,
|
|
318
|
+
_request_timeout: Union[
|
|
319
|
+
None,
|
|
320
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
321
|
+
Tuple[
|
|
322
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
323
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
324
|
+
]
|
|
325
|
+
] = None,
|
|
326
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
327
|
+
_content_type: Optional[StrictStr] = None,
|
|
328
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
329
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
330
|
+
) -> GameScoreResponse:
|
|
331
|
+
"""Get the Game Recap Score for a specific Game.
|
|
332
|
+
|
|
333
|
+
Retrieves the final score and the score breakdown by quarter and overtime periods for both the home and away teams.
|
|
334
|
+
|
|
335
|
+
:param video_id: (required)
|
|
336
|
+
:type video_id: str
|
|
337
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
338
|
+
number provided, it will be total request
|
|
339
|
+
timeout. It can also be a pair (tuple) of
|
|
340
|
+
(connection, read) timeouts.
|
|
341
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
342
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
343
|
+
request; this effectively ignores the
|
|
344
|
+
authentication in the spec for a single request.
|
|
345
|
+
:type _request_auth: dict, optional
|
|
346
|
+
:param _content_type: force content-type for the request.
|
|
347
|
+
:type _content_type: str, Optional
|
|
348
|
+
:param _headers: set to override the headers for a single
|
|
349
|
+
request; this effectively ignores the headers
|
|
350
|
+
in the spec for a single request.
|
|
351
|
+
:type _headers: dict, optional
|
|
352
|
+
:param _host_index: set to override the host_index for a single
|
|
353
|
+
request; this effectively ignores the host_index
|
|
354
|
+
in the spec for a single request.
|
|
355
|
+
:type _host_index: int, optional
|
|
356
|
+
:return: Returns the result object.
|
|
357
|
+
""" # noqa: E501
|
|
358
|
+
|
|
359
|
+
_param = self._get_game_recap_score_serialize(
|
|
360
|
+
video_id=video_id,
|
|
361
|
+
_request_auth=_request_auth,
|
|
362
|
+
_content_type=_content_type,
|
|
363
|
+
_headers=_headers,
|
|
364
|
+
_host_index=_host_index
|
|
365
|
+
)
|
|
366
|
+
|
|
367
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
368
|
+
'200': "GameScoreResponse",
|
|
369
|
+
'400': "BadRequestErrorResponseDto",
|
|
370
|
+
'401': "UnauthorizedErrorResponseDto",
|
|
371
|
+
'404': "NotFoundErrorResponseDto",
|
|
372
|
+
}
|
|
373
|
+
response_data = self.api_client.call_api(
|
|
374
|
+
*_param,
|
|
375
|
+
_request_timeout=_request_timeout
|
|
376
|
+
)
|
|
377
|
+
response_data.read()
|
|
378
|
+
return self.api_client.response_deserialize(
|
|
379
|
+
response_data=response_data,
|
|
380
|
+
response_types_map=_response_types_map,
|
|
381
|
+
).data
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
@validate_call
|
|
385
|
+
def get_game_recap_score_with_http_info(
|
|
386
|
+
self,
|
|
387
|
+
video_id: StrictStr,
|
|
388
|
+
_request_timeout: Union[
|
|
389
|
+
None,
|
|
390
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
391
|
+
Tuple[
|
|
392
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
393
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
394
|
+
]
|
|
395
|
+
] = None,
|
|
396
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
397
|
+
_content_type: Optional[StrictStr] = None,
|
|
398
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
399
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
400
|
+
) -> ApiResponse[GameScoreResponse]:
|
|
401
|
+
"""Get the Game Recap Score for a specific Game.
|
|
402
|
+
|
|
403
|
+
Retrieves the final score and the score breakdown by quarter and overtime periods for both the home and away teams.
|
|
404
|
+
|
|
405
|
+
:param video_id: (required)
|
|
406
|
+
:type video_id: str
|
|
407
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
408
|
+
number provided, it will be total request
|
|
409
|
+
timeout. It can also be a pair (tuple) of
|
|
410
|
+
(connection, read) timeouts.
|
|
411
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
412
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
413
|
+
request; this effectively ignores the
|
|
414
|
+
authentication in the spec for a single request.
|
|
415
|
+
:type _request_auth: dict, optional
|
|
416
|
+
:param _content_type: force content-type for the request.
|
|
417
|
+
:type _content_type: str, Optional
|
|
418
|
+
:param _headers: set to override the headers for a single
|
|
419
|
+
request; this effectively ignores the headers
|
|
420
|
+
in the spec for a single request.
|
|
421
|
+
:type _headers: dict, optional
|
|
422
|
+
:param _host_index: set to override the host_index for a single
|
|
423
|
+
request; this effectively ignores the host_index
|
|
424
|
+
in the spec for a single request.
|
|
425
|
+
:type _host_index: int, optional
|
|
426
|
+
:return: Returns the result object.
|
|
427
|
+
""" # noqa: E501
|
|
428
|
+
|
|
429
|
+
_param = self._get_game_recap_score_serialize(
|
|
430
|
+
video_id=video_id,
|
|
431
|
+
_request_auth=_request_auth,
|
|
432
|
+
_content_type=_content_type,
|
|
433
|
+
_headers=_headers,
|
|
434
|
+
_host_index=_host_index
|
|
435
|
+
)
|
|
436
|
+
|
|
437
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
438
|
+
'200': "GameScoreResponse",
|
|
439
|
+
'400': "BadRequestErrorResponseDto",
|
|
440
|
+
'401': "UnauthorizedErrorResponseDto",
|
|
441
|
+
'404': "NotFoundErrorResponseDto",
|
|
442
|
+
}
|
|
443
|
+
response_data = self.api_client.call_api(
|
|
444
|
+
*_param,
|
|
445
|
+
_request_timeout=_request_timeout
|
|
446
|
+
)
|
|
447
|
+
response_data.read()
|
|
448
|
+
return self.api_client.response_deserialize(
|
|
449
|
+
response_data=response_data,
|
|
450
|
+
response_types_map=_response_types_map,
|
|
451
|
+
)
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
@validate_call
|
|
455
|
+
def get_game_recap_score_without_preload_content(
|
|
456
|
+
self,
|
|
457
|
+
video_id: StrictStr,
|
|
458
|
+
_request_timeout: Union[
|
|
459
|
+
None,
|
|
460
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
461
|
+
Tuple[
|
|
462
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
463
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
464
|
+
]
|
|
465
|
+
] = None,
|
|
466
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
467
|
+
_content_type: Optional[StrictStr] = None,
|
|
468
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
469
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
470
|
+
) -> RESTResponseType:
|
|
471
|
+
"""Get the Game Recap Score for a specific Game.
|
|
472
|
+
|
|
473
|
+
Retrieves the final score and the score breakdown by quarter and overtime periods for both the home and away teams.
|
|
474
|
+
|
|
475
|
+
:param video_id: (required)
|
|
476
|
+
:type video_id: str
|
|
477
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
478
|
+
number provided, it will be total request
|
|
479
|
+
timeout. It can also be a pair (tuple) of
|
|
480
|
+
(connection, read) timeouts.
|
|
481
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
482
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
483
|
+
request; this effectively ignores the
|
|
484
|
+
authentication in the spec for a single request.
|
|
485
|
+
:type _request_auth: dict, optional
|
|
486
|
+
:param _content_type: force content-type for the request.
|
|
487
|
+
:type _content_type: str, Optional
|
|
488
|
+
:param _headers: set to override the headers for a single
|
|
489
|
+
request; this effectively ignores the headers
|
|
490
|
+
in the spec for a single request.
|
|
491
|
+
:type _headers: dict, optional
|
|
492
|
+
:param _host_index: set to override the host_index for a single
|
|
493
|
+
request; this effectively ignores the host_index
|
|
494
|
+
in the spec for a single request.
|
|
495
|
+
:type _host_index: int, optional
|
|
496
|
+
:return: Returns the result object.
|
|
497
|
+
""" # noqa: E501
|
|
498
|
+
|
|
499
|
+
_param = self._get_game_recap_score_serialize(
|
|
500
|
+
video_id=video_id,
|
|
501
|
+
_request_auth=_request_auth,
|
|
502
|
+
_content_type=_content_type,
|
|
503
|
+
_headers=_headers,
|
|
504
|
+
_host_index=_host_index
|
|
505
|
+
)
|
|
506
|
+
|
|
507
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
508
|
+
'200': "GameScoreResponse",
|
|
509
|
+
'400': "BadRequestErrorResponseDto",
|
|
510
|
+
'401': "UnauthorizedErrorResponseDto",
|
|
511
|
+
'404': "NotFoundErrorResponseDto",
|
|
512
|
+
}
|
|
513
|
+
response_data = self.api_client.call_api(
|
|
514
|
+
*_param,
|
|
515
|
+
_request_timeout=_request_timeout
|
|
516
|
+
)
|
|
517
|
+
return response_data.response
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
def _get_game_recap_score_serialize(
|
|
521
|
+
self,
|
|
522
|
+
video_id,
|
|
523
|
+
_request_auth,
|
|
524
|
+
_content_type,
|
|
525
|
+
_headers,
|
|
526
|
+
_host_index,
|
|
527
|
+
) -> RequestSerialized:
|
|
528
|
+
|
|
529
|
+
_host = None
|
|
530
|
+
|
|
531
|
+
_collection_formats: Dict[str, str] = {
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
_path_params: Dict[str, str] = {}
|
|
535
|
+
_query_params: List[Tuple[str, str]] = []
|
|
536
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
537
|
+
_form_params: List[Tuple[str, str]] = []
|
|
538
|
+
_files: Dict[
|
|
539
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
540
|
+
] = {}
|
|
541
|
+
_body_params: Optional[bytes] = None
|
|
542
|
+
|
|
543
|
+
# process the path parameters
|
|
544
|
+
if video_id is not None:
|
|
545
|
+
_path_params['videoId'] = video_id
|
|
546
|
+
# process the query parameters
|
|
547
|
+
# process the header parameters
|
|
548
|
+
# process the form parameters
|
|
549
|
+
# process the body parameter
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
# set the HTTP header `Accept`
|
|
553
|
+
if 'Accept' not in _header_params:
|
|
554
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
555
|
+
[
|
|
556
|
+
'application/json'
|
|
557
|
+
]
|
|
558
|
+
)
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
# authentication setting
|
|
562
|
+
_auth_settings: List[str] = [
|
|
563
|
+
'Client-App-Token',
|
|
564
|
+
'Client-App-Id'
|
|
565
|
+
]
|
|
566
|
+
|
|
567
|
+
return self.api_client.param_serialize(
|
|
568
|
+
method='GET',
|
|
569
|
+
resource_path='/api/v1/client/game-recap/{videoId}/score',
|
|
570
|
+
path_params=_path_params,
|
|
571
|
+
query_params=_query_params,
|
|
572
|
+
header_params=_header_params,
|
|
573
|
+
body=_body_params,
|
|
574
|
+
post_params=_form_params,
|
|
575
|
+
files=_files,
|
|
576
|
+
auth_settings=_auth_settings,
|
|
577
|
+
collection_formats=_collection_formats,
|
|
578
|
+
_host=_host,
|
|
579
|
+
_request_auth=_request_auth
|
|
580
|
+
)
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
@validate_call
|
|
586
|
+
def get_game_recap_scoring_summary(
|
|
587
|
+
self,
|
|
588
|
+
video_id: StrictStr,
|
|
589
|
+
_request_timeout: Union[
|
|
590
|
+
None,
|
|
591
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
592
|
+
Tuple[
|
|
593
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
594
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
595
|
+
]
|
|
596
|
+
] = None,
|
|
597
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
598
|
+
_content_type: Optional[StrictStr] = None,
|
|
599
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
600
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
601
|
+
) -> GameRecapScoringSummaryResponse:
|
|
602
|
+
"""Get the Game Recap Scoring Summary for a specific Game.
|
|
603
|
+
|
|
604
|
+
Retrieves a chronological list of all scoring plays for a specific game, including details about the play, the drive, and the resulting score.
|
|
605
|
+
|
|
606
|
+
:param video_id: (required)
|
|
607
|
+
:type video_id: str
|
|
608
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
609
|
+
number provided, it will be total request
|
|
610
|
+
timeout. It can also be a pair (tuple) of
|
|
611
|
+
(connection, read) timeouts.
|
|
612
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
613
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
614
|
+
request; this effectively ignores the
|
|
615
|
+
authentication in the spec for a single request.
|
|
616
|
+
:type _request_auth: dict, optional
|
|
617
|
+
:param _content_type: force content-type for the request.
|
|
618
|
+
:type _content_type: str, Optional
|
|
619
|
+
:param _headers: set to override the headers for a single
|
|
620
|
+
request; this effectively ignores the headers
|
|
621
|
+
in the spec for a single request.
|
|
622
|
+
:type _headers: dict, optional
|
|
623
|
+
:param _host_index: set to override the host_index for a single
|
|
624
|
+
request; this effectively ignores the host_index
|
|
625
|
+
in the spec for a single request.
|
|
626
|
+
:type _host_index: int, optional
|
|
627
|
+
:return: Returns the result object.
|
|
628
|
+
""" # noqa: E501
|
|
629
|
+
|
|
630
|
+
_param = self._get_game_recap_scoring_summary_serialize(
|
|
631
|
+
video_id=video_id,
|
|
632
|
+
_request_auth=_request_auth,
|
|
633
|
+
_content_type=_content_type,
|
|
634
|
+
_headers=_headers,
|
|
635
|
+
_host_index=_host_index
|
|
636
|
+
)
|
|
637
|
+
|
|
638
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
639
|
+
'200': "GameRecapScoringSummaryResponse",
|
|
640
|
+
'400': "BadRequestErrorResponseDto",
|
|
641
|
+
'401': "UnauthorizedErrorResponseDto",
|
|
642
|
+
'404': "NotFoundErrorResponseDto",
|
|
643
|
+
}
|
|
644
|
+
response_data = self.api_client.call_api(
|
|
645
|
+
*_param,
|
|
646
|
+
_request_timeout=_request_timeout
|
|
647
|
+
)
|
|
648
|
+
response_data.read()
|
|
649
|
+
return self.api_client.response_deserialize(
|
|
650
|
+
response_data=response_data,
|
|
651
|
+
response_types_map=_response_types_map,
|
|
652
|
+
).data
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
@validate_call
|
|
656
|
+
def get_game_recap_scoring_summary_with_http_info(
|
|
657
|
+
self,
|
|
658
|
+
video_id: StrictStr,
|
|
659
|
+
_request_timeout: Union[
|
|
660
|
+
None,
|
|
661
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
662
|
+
Tuple[
|
|
663
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
664
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
665
|
+
]
|
|
666
|
+
] = None,
|
|
667
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
668
|
+
_content_type: Optional[StrictStr] = None,
|
|
669
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
670
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
671
|
+
) -> ApiResponse[GameRecapScoringSummaryResponse]:
|
|
672
|
+
"""Get the Game Recap Scoring Summary for a specific Game.
|
|
673
|
+
|
|
674
|
+
Retrieves a chronological list of all scoring plays for a specific game, including details about the play, the drive, and the resulting score.
|
|
675
|
+
|
|
676
|
+
:param video_id: (required)
|
|
677
|
+
:type video_id: str
|
|
678
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
679
|
+
number provided, it will be total request
|
|
680
|
+
timeout. It can also be a pair (tuple) of
|
|
681
|
+
(connection, read) timeouts.
|
|
682
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
683
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
684
|
+
request; this effectively ignores the
|
|
685
|
+
authentication in the spec for a single request.
|
|
686
|
+
:type _request_auth: dict, optional
|
|
687
|
+
:param _content_type: force content-type for the request.
|
|
688
|
+
:type _content_type: str, Optional
|
|
689
|
+
:param _headers: set to override the headers for a single
|
|
690
|
+
request; this effectively ignores the headers
|
|
691
|
+
in the spec for a single request.
|
|
692
|
+
:type _headers: dict, optional
|
|
693
|
+
:param _host_index: set to override the host_index for a single
|
|
694
|
+
request; this effectively ignores the host_index
|
|
695
|
+
in the spec for a single request.
|
|
696
|
+
:type _host_index: int, optional
|
|
697
|
+
:return: Returns the result object.
|
|
698
|
+
""" # noqa: E501
|
|
699
|
+
|
|
700
|
+
_param = self._get_game_recap_scoring_summary_serialize(
|
|
701
|
+
video_id=video_id,
|
|
702
|
+
_request_auth=_request_auth,
|
|
703
|
+
_content_type=_content_type,
|
|
704
|
+
_headers=_headers,
|
|
705
|
+
_host_index=_host_index
|
|
706
|
+
)
|
|
707
|
+
|
|
708
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
709
|
+
'200': "GameRecapScoringSummaryResponse",
|
|
710
|
+
'400': "BadRequestErrorResponseDto",
|
|
711
|
+
'401': "UnauthorizedErrorResponseDto",
|
|
712
|
+
'404': "NotFoundErrorResponseDto",
|
|
713
|
+
}
|
|
714
|
+
response_data = self.api_client.call_api(
|
|
715
|
+
*_param,
|
|
716
|
+
_request_timeout=_request_timeout
|
|
717
|
+
)
|
|
718
|
+
response_data.read()
|
|
719
|
+
return self.api_client.response_deserialize(
|
|
720
|
+
response_data=response_data,
|
|
721
|
+
response_types_map=_response_types_map,
|
|
722
|
+
)
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
@validate_call
|
|
726
|
+
def get_game_recap_scoring_summary_without_preload_content(
|
|
727
|
+
self,
|
|
728
|
+
video_id: StrictStr,
|
|
729
|
+
_request_timeout: Union[
|
|
730
|
+
None,
|
|
731
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
732
|
+
Tuple[
|
|
733
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
734
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
735
|
+
]
|
|
736
|
+
] = None,
|
|
737
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
738
|
+
_content_type: Optional[StrictStr] = None,
|
|
739
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
740
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
741
|
+
) -> RESTResponseType:
|
|
742
|
+
"""Get the Game Recap Scoring Summary for a specific Game.
|
|
743
|
+
|
|
744
|
+
Retrieves a chronological list of all scoring plays for a specific game, including details about the play, the drive, and the resulting score.
|
|
745
|
+
|
|
746
|
+
:param video_id: (required)
|
|
747
|
+
:type video_id: str
|
|
748
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
749
|
+
number provided, it will be total request
|
|
750
|
+
timeout. It can also be a pair (tuple) of
|
|
751
|
+
(connection, read) timeouts.
|
|
752
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
753
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
754
|
+
request; this effectively ignores the
|
|
755
|
+
authentication in the spec for a single request.
|
|
756
|
+
:type _request_auth: dict, optional
|
|
757
|
+
:param _content_type: force content-type for the request.
|
|
758
|
+
:type _content_type: str, Optional
|
|
759
|
+
:param _headers: set to override the headers for a single
|
|
760
|
+
request; this effectively ignores the headers
|
|
761
|
+
in the spec for a single request.
|
|
762
|
+
:type _headers: dict, optional
|
|
763
|
+
:param _host_index: set to override the host_index for a single
|
|
764
|
+
request; this effectively ignores the host_index
|
|
765
|
+
in the spec for a single request.
|
|
766
|
+
:type _host_index: int, optional
|
|
767
|
+
:return: Returns the result object.
|
|
768
|
+
""" # noqa: E501
|
|
769
|
+
|
|
770
|
+
_param = self._get_game_recap_scoring_summary_serialize(
|
|
771
|
+
video_id=video_id,
|
|
772
|
+
_request_auth=_request_auth,
|
|
773
|
+
_content_type=_content_type,
|
|
774
|
+
_headers=_headers,
|
|
775
|
+
_host_index=_host_index
|
|
776
|
+
)
|
|
777
|
+
|
|
778
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
779
|
+
'200': "GameRecapScoringSummaryResponse",
|
|
780
|
+
'400': "BadRequestErrorResponseDto",
|
|
781
|
+
'401': "UnauthorizedErrorResponseDto",
|
|
782
|
+
'404': "NotFoundErrorResponseDto",
|
|
783
|
+
}
|
|
784
|
+
response_data = self.api_client.call_api(
|
|
785
|
+
*_param,
|
|
786
|
+
_request_timeout=_request_timeout
|
|
787
|
+
)
|
|
788
|
+
return response_data.response
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
def _get_game_recap_scoring_summary_serialize(
|
|
792
|
+
self,
|
|
793
|
+
video_id,
|
|
794
|
+
_request_auth,
|
|
795
|
+
_content_type,
|
|
796
|
+
_headers,
|
|
797
|
+
_host_index,
|
|
798
|
+
) -> RequestSerialized:
|
|
799
|
+
|
|
800
|
+
_host = None
|
|
801
|
+
|
|
802
|
+
_collection_formats: Dict[str, str] = {
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
_path_params: Dict[str, str] = {}
|
|
806
|
+
_query_params: List[Tuple[str, str]] = []
|
|
807
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
808
|
+
_form_params: List[Tuple[str, str]] = []
|
|
809
|
+
_files: Dict[
|
|
810
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
811
|
+
] = {}
|
|
812
|
+
_body_params: Optional[bytes] = None
|
|
813
|
+
|
|
814
|
+
# process the path parameters
|
|
815
|
+
if video_id is not None:
|
|
816
|
+
_path_params['videoId'] = video_id
|
|
817
|
+
# process the query parameters
|
|
818
|
+
# process the header parameters
|
|
819
|
+
# process the form parameters
|
|
820
|
+
# process the body parameter
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
# set the HTTP header `Accept`
|
|
824
|
+
if 'Accept' not in _header_params:
|
|
825
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
826
|
+
[
|
|
827
|
+
'application/json'
|
|
828
|
+
]
|
|
829
|
+
)
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
# authentication setting
|
|
833
|
+
_auth_settings: List[str] = [
|
|
834
|
+
'Client-App-Token',
|
|
835
|
+
'Client-App-Id'
|
|
836
|
+
]
|
|
837
|
+
|
|
838
|
+
return self.api_client.param_serialize(
|
|
839
|
+
method='GET',
|
|
840
|
+
resource_path='/api/v1/client/game-recap/{videoId}/scoring-summary',
|
|
841
|
+
path_params=_path_params,
|
|
842
|
+
query_params=_query_params,
|
|
843
|
+
header_params=_header_params,
|
|
844
|
+
body=_body_params,
|
|
845
|
+
post_params=_form_params,
|
|
846
|
+
files=_files,
|
|
847
|
+
auth_settings=_auth_settings,
|
|
848
|
+
collection_formats=_collection_formats,
|
|
849
|
+
_host=_host,
|
|
850
|
+
_request_auth=_request_auth
|
|
851
|
+
)
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
@validate_call
|
|
857
|
+
def get_game_recap_scoring_summary_pro(
|
|
858
|
+
self,
|
|
859
|
+
video_id: StrictStr,
|
|
860
|
+
_request_timeout: Union[
|
|
861
|
+
None,
|
|
862
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
863
|
+
Tuple[
|
|
864
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
865
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
866
|
+
]
|
|
867
|
+
] = None,
|
|
868
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
869
|
+
_content_type: Optional[StrictStr] = None,
|
|
870
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
871
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
872
|
+
) -> GameRecapScoringSummaryProResponse:
|
|
873
|
+
"""Get the Game Recap Scoring Summary Pro for a specific Game.
|
|
874
|
+
|
|
875
|
+
Retrieves the full pro scoring summary for a specific game with drive context and players involved for each scoring play.
|
|
876
|
+
|
|
877
|
+
:param video_id: (required)
|
|
878
|
+
:type video_id: str
|
|
879
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
880
|
+
number provided, it will be total request
|
|
881
|
+
timeout. It can also be a pair (tuple) of
|
|
882
|
+
(connection, read) timeouts.
|
|
883
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
884
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
885
|
+
request; this effectively ignores the
|
|
886
|
+
authentication in the spec for a single request.
|
|
887
|
+
:type _request_auth: dict, optional
|
|
888
|
+
:param _content_type: force content-type for the request.
|
|
889
|
+
:type _content_type: str, Optional
|
|
890
|
+
:param _headers: set to override the headers for a single
|
|
891
|
+
request; this effectively ignores the headers
|
|
892
|
+
in the spec for a single request.
|
|
893
|
+
:type _headers: dict, optional
|
|
894
|
+
:param _host_index: set to override the host_index for a single
|
|
895
|
+
request; this effectively ignores the host_index
|
|
896
|
+
in the spec for a single request.
|
|
897
|
+
:type _host_index: int, optional
|
|
898
|
+
:return: Returns the result object.
|
|
899
|
+
""" # noqa: E501
|
|
900
|
+
|
|
901
|
+
_param = self._get_game_recap_scoring_summary_pro_serialize(
|
|
902
|
+
video_id=video_id,
|
|
903
|
+
_request_auth=_request_auth,
|
|
904
|
+
_content_type=_content_type,
|
|
905
|
+
_headers=_headers,
|
|
906
|
+
_host_index=_host_index
|
|
907
|
+
)
|
|
908
|
+
|
|
909
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
910
|
+
'200': "GameRecapScoringSummaryProResponse",
|
|
911
|
+
'400': "BadRequestErrorResponseDto",
|
|
912
|
+
'401': "UnauthorizedErrorResponseDto",
|
|
913
|
+
'404': "NotFoundErrorResponseDto",
|
|
914
|
+
}
|
|
915
|
+
response_data = self.api_client.call_api(
|
|
916
|
+
*_param,
|
|
917
|
+
_request_timeout=_request_timeout
|
|
918
|
+
)
|
|
919
|
+
response_data.read()
|
|
920
|
+
return self.api_client.response_deserialize(
|
|
921
|
+
response_data=response_data,
|
|
922
|
+
response_types_map=_response_types_map,
|
|
923
|
+
).data
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
@validate_call
|
|
927
|
+
def get_game_recap_scoring_summary_pro_with_http_info(
|
|
928
|
+
self,
|
|
929
|
+
video_id: StrictStr,
|
|
930
|
+
_request_timeout: Union[
|
|
931
|
+
None,
|
|
932
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
933
|
+
Tuple[
|
|
934
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
935
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
936
|
+
]
|
|
937
|
+
] = None,
|
|
938
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
939
|
+
_content_type: Optional[StrictStr] = None,
|
|
940
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
941
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
942
|
+
) -> ApiResponse[GameRecapScoringSummaryProResponse]:
|
|
943
|
+
"""Get the Game Recap Scoring Summary Pro for a specific Game.
|
|
944
|
+
|
|
945
|
+
Retrieves the full pro scoring summary for a specific game with drive context and players involved for each scoring play.
|
|
946
|
+
|
|
947
|
+
:param video_id: (required)
|
|
948
|
+
:type video_id: str
|
|
949
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
950
|
+
number provided, it will be total request
|
|
951
|
+
timeout. It can also be a pair (tuple) of
|
|
952
|
+
(connection, read) timeouts.
|
|
953
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
954
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
955
|
+
request; this effectively ignores the
|
|
956
|
+
authentication in the spec for a single request.
|
|
957
|
+
:type _request_auth: dict, optional
|
|
958
|
+
:param _content_type: force content-type for the request.
|
|
959
|
+
:type _content_type: str, Optional
|
|
960
|
+
:param _headers: set to override the headers for a single
|
|
961
|
+
request; this effectively ignores the headers
|
|
962
|
+
in the spec for a single request.
|
|
963
|
+
:type _headers: dict, optional
|
|
964
|
+
:param _host_index: set to override the host_index for a single
|
|
965
|
+
request; this effectively ignores the host_index
|
|
966
|
+
in the spec for a single request.
|
|
967
|
+
:type _host_index: int, optional
|
|
968
|
+
:return: Returns the result object.
|
|
969
|
+
""" # noqa: E501
|
|
970
|
+
|
|
971
|
+
_param = self._get_game_recap_scoring_summary_pro_serialize(
|
|
972
|
+
video_id=video_id,
|
|
973
|
+
_request_auth=_request_auth,
|
|
974
|
+
_content_type=_content_type,
|
|
975
|
+
_headers=_headers,
|
|
976
|
+
_host_index=_host_index
|
|
977
|
+
)
|
|
978
|
+
|
|
979
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
980
|
+
'200': "GameRecapScoringSummaryProResponse",
|
|
981
|
+
'400': "BadRequestErrorResponseDto",
|
|
982
|
+
'401': "UnauthorizedErrorResponseDto",
|
|
983
|
+
'404': "NotFoundErrorResponseDto",
|
|
984
|
+
}
|
|
985
|
+
response_data = self.api_client.call_api(
|
|
986
|
+
*_param,
|
|
987
|
+
_request_timeout=_request_timeout
|
|
988
|
+
)
|
|
989
|
+
response_data.read()
|
|
990
|
+
return self.api_client.response_deserialize(
|
|
991
|
+
response_data=response_data,
|
|
992
|
+
response_types_map=_response_types_map,
|
|
993
|
+
)
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
@validate_call
|
|
997
|
+
def get_game_recap_scoring_summary_pro_without_preload_content(
|
|
998
|
+
self,
|
|
999
|
+
video_id: StrictStr,
|
|
1000
|
+
_request_timeout: Union[
|
|
1001
|
+
None,
|
|
1002
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1003
|
+
Tuple[
|
|
1004
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1005
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1006
|
+
]
|
|
1007
|
+
] = None,
|
|
1008
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1009
|
+
_content_type: Optional[StrictStr] = None,
|
|
1010
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1011
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1012
|
+
) -> RESTResponseType:
|
|
1013
|
+
"""Get the Game Recap Scoring Summary Pro for a specific Game.
|
|
1014
|
+
|
|
1015
|
+
Retrieves the full pro scoring summary for a specific game with drive context and players involved for each scoring play.
|
|
1016
|
+
|
|
1017
|
+
:param video_id: (required)
|
|
1018
|
+
:type video_id: str
|
|
1019
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1020
|
+
number provided, it will be total request
|
|
1021
|
+
timeout. It can also be a pair (tuple) of
|
|
1022
|
+
(connection, read) timeouts.
|
|
1023
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1024
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1025
|
+
request; this effectively ignores the
|
|
1026
|
+
authentication in the spec for a single request.
|
|
1027
|
+
:type _request_auth: dict, optional
|
|
1028
|
+
:param _content_type: force content-type for the request.
|
|
1029
|
+
:type _content_type: str, Optional
|
|
1030
|
+
:param _headers: set to override the headers for a single
|
|
1031
|
+
request; this effectively ignores the headers
|
|
1032
|
+
in the spec for a single request.
|
|
1033
|
+
:type _headers: dict, optional
|
|
1034
|
+
:param _host_index: set to override the host_index for a single
|
|
1035
|
+
request; this effectively ignores the host_index
|
|
1036
|
+
in the spec for a single request.
|
|
1037
|
+
:type _host_index: int, optional
|
|
1038
|
+
:return: Returns the result object.
|
|
1039
|
+
""" # noqa: E501
|
|
1040
|
+
|
|
1041
|
+
_param = self._get_game_recap_scoring_summary_pro_serialize(
|
|
1042
|
+
video_id=video_id,
|
|
1043
|
+
_request_auth=_request_auth,
|
|
1044
|
+
_content_type=_content_type,
|
|
1045
|
+
_headers=_headers,
|
|
1046
|
+
_host_index=_host_index
|
|
1047
|
+
)
|
|
1048
|
+
|
|
1049
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1050
|
+
'200': "GameRecapScoringSummaryProResponse",
|
|
1051
|
+
'400': "BadRequestErrorResponseDto",
|
|
1052
|
+
'401': "UnauthorizedErrorResponseDto",
|
|
1053
|
+
'404': "NotFoundErrorResponseDto",
|
|
1054
|
+
}
|
|
1055
|
+
response_data = self.api_client.call_api(
|
|
1056
|
+
*_param,
|
|
1057
|
+
_request_timeout=_request_timeout
|
|
1058
|
+
)
|
|
1059
|
+
return response_data.response
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
def _get_game_recap_scoring_summary_pro_serialize(
|
|
1063
|
+
self,
|
|
1064
|
+
video_id,
|
|
1065
|
+
_request_auth,
|
|
1066
|
+
_content_type,
|
|
1067
|
+
_headers,
|
|
1068
|
+
_host_index,
|
|
1069
|
+
) -> RequestSerialized:
|
|
1070
|
+
|
|
1071
|
+
_host = None
|
|
1072
|
+
|
|
1073
|
+
_collection_formats: Dict[str, str] = {
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
_path_params: Dict[str, str] = {}
|
|
1077
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1078
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1079
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1080
|
+
_files: Dict[
|
|
1081
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1082
|
+
] = {}
|
|
1083
|
+
_body_params: Optional[bytes] = None
|
|
1084
|
+
|
|
1085
|
+
# process the path parameters
|
|
1086
|
+
if video_id is not None:
|
|
1087
|
+
_path_params['videoId'] = video_id
|
|
1088
|
+
# process the query parameters
|
|
1089
|
+
# process the header parameters
|
|
1090
|
+
# process the form parameters
|
|
1091
|
+
# process the body parameter
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
# set the HTTP header `Accept`
|
|
1095
|
+
if 'Accept' not in _header_params:
|
|
1096
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1097
|
+
[
|
|
1098
|
+
'application/json'
|
|
1099
|
+
]
|
|
1100
|
+
)
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
# authentication setting
|
|
1104
|
+
_auth_settings: List[str] = [
|
|
1105
|
+
'Client-App-Token',
|
|
1106
|
+
'Client-App-Id'
|
|
1107
|
+
]
|
|
1108
|
+
|
|
1109
|
+
return self.api_client.param_serialize(
|
|
1110
|
+
method='GET',
|
|
1111
|
+
resource_path='/api/v1/client/game-recap/{videoId}/scoring-summary-pro',
|
|
1112
|
+
path_params=_path_params,
|
|
1113
|
+
query_params=_query_params,
|
|
1114
|
+
header_params=_header_params,
|
|
1115
|
+
body=_body_params,
|
|
1116
|
+
post_params=_form_params,
|
|
1117
|
+
files=_files,
|
|
1118
|
+
auth_settings=_auth_settings,
|
|
1119
|
+
collection_formats=_collection_formats,
|
|
1120
|
+
_host=_host,
|
|
1121
|
+
_request_auth=_request_auth
|
|
1122
|
+
)
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
@validate_call
|
|
1128
|
+
def get_game_recap_team_stats(
|
|
1129
|
+
self,
|
|
1130
|
+
video_id: StrictStr,
|
|
1131
|
+
_request_timeout: Union[
|
|
1132
|
+
None,
|
|
1133
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1134
|
+
Tuple[
|
|
1135
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1136
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1137
|
+
]
|
|
1138
|
+
] = None,
|
|
1139
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1140
|
+
_content_type: Optional[StrictStr] = None,
|
|
1141
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1142
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1143
|
+
) -> GameRecapTeamStatsResponse:
|
|
1144
|
+
"""Get the Game Recap Team Stats for a specific Game.
|
|
1145
|
+
|
|
1146
|
+
Retrieves a detailed statistical breakdown for both the home and away teams, covering offense, defense, and special teams performance.
|
|
1147
|
+
|
|
1148
|
+
:param video_id: (required)
|
|
1149
|
+
:type video_id: str
|
|
1150
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1151
|
+
number provided, it will be total request
|
|
1152
|
+
timeout. It can also be a pair (tuple) of
|
|
1153
|
+
(connection, read) timeouts.
|
|
1154
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1155
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1156
|
+
request; this effectively ignores the
|
|
1157
|
+
authentication in the spec for a single request.
|
|
1158
|
+
:type _request_auth: dict, optional
|
|
1159
|
+
:param _content_type: force content-type for the request.
|
|
1160
|
+
:type _content_type: str, Optional
|
|
1161
|
+
:param _headers: set to override the headers for a single
|
|
1162
|
+
request; this effectively ignores the headers
|
|
1163
|
+
in the spec for a single request.
|
|
1164
|
+
:type _headers: dict, optional
|
|
1165
|
+
:param _host_index: set to override the host_index for a single
|
|
1166
|
+
request; this effectively ignores the host_index
|
|
1167
|
+
in the spec for a single request.
|
|
1168
|
+
:type _host_index: int, optional
|
|
1169
|
+
:return: Returns the result object.
|
|
1170
|
+
""" # noqa: E501
|
|
1171
|
+
|
|
1172
|
+
_param = self._get_game_recap_team_stats_serialize(
|
|
1173
|
+
video_id=video_id,
|
|
1174
|
+
_request_auth=_request_auth,
|
|
1175
|
+
_content_type=_content_type,
|
|
1176
|
+
_headers=_headers,
|
|
1177
|
+
_host_index=_host_index
|
|
1178
|
+
)
|
|
1179
|
+
|
|
1180
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1181
|
+
'200': "GameRecapTeamStatsResponse",
|
|
1182
|
+
'400': "BadRequestErrorResponseDto",
|
|
1183
|
+
'401': "UnauthorizedErrorResponseDto",
|
|
1184
|
+
'404': "NotFoundErrorResponseDto",
|
|
1185
|
+
}
|
|
1186
|
+
response_data = self.api_client.call_api(
|
|
1187
|
+
*_param,
|
|
1188
|
+
_request_timeout=_request_timeout
|
|
1189
|
+
)
|
|
1190
|
+
response_data.read()
|
|
1191
|
+
return self.api_client.response_deserialize(
|
|
1192
|
+
response_data=response_data,
|
|
1193
|
+
response_types_map=_response_types_map,
|
|
1194
|
+
).data
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
@validate_call
|
|
1198
|
+
def get_game_recap_team_stats_with_http_info(
|
|
1199
|
+
self,
|
|
1200
|
+
video_id: StrictStr,
|
|
1201
|
+
_request_timeout: Union[
|
|
1202
|
+
None,
|
|
1203
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1204
|
+
Tuple[
|
|
1205
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1206
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1207
|
+
]
|
|
1208
|
+
] = None,
|
|
1209
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1210
|
+
_content_type: Optional[StrictStr] = None,
|
|
1211
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1212
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1213
|
+
) -> ApiResponse[GameRecapTeamStatsResponse]:
|
|
1214
|
+
"""Get the Game Recap Team Stats for a specific Game.
|
|
1215
|
+
|
|
1216
|
+
Retrieves a detailed statistical breakdown for both the home and away teams, covering offense, defense, and special teams performance.
|
|
1217
|
+
|
|
1218
|
+
:param video_id: (required)
|
|
1219
|
+
:type video_id: str
|
|
1220
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1221
|
+
number provided, it will be total request
|
|
1222
|
+
timeout. It can also be a pair (tuple) of
|
|
1223
|
+
(connection, read) timeouts.
|
|
1224
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1225
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1226
|
+
request; this effectively ignores the
|
|
1227
|
+
authentication in the spec for a single request.
|
|
1228
|
+
:type _request_auth: dict, optional
|
|
1229
|
+
:param _content_type: force content-type for the request.
|
|
1230
|
+
:type _content_type: str, Optional
|
|
1231
|
+
:param _headers: set to override the headers for a single
|
|
1232
|
+
request; this effectively ignores the headers
|
|
1233
|
+
in the spec for a single request.
|
|
1234
|
+
:type _headers: dict, optional
|
|
1235
|
+
:param _host_index: set to override the host_index for a single
|
|
1236
|
+
request; this effectively ignores the host_index
|
|
1237
|
+
in the spec for a single request.
|
|
1238
|
+
:type _host_index: int, optional
|
|
1239
|
+
:return: Returns the result object.
|
|
1240
|
+
""" # noqa: E501
|
|
1241
|
+
|
|
1242
|
+
_param = self._get_game_recap_team_stats_serialize(
|
|
1243
|
+
video_id=video_id,
|
|
1244
|
+
_request_auth=_request_auth,
|
|
1245
|
+
_content_type=_content_type,
|
|
1246
|
+
_headers=_headers,
|
|
1247
|
+
_host_index=_host_index
|
|
1248
|
+
)
|
|
1249
|
+
|
|
1250
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1251
|
+
'200': "GameRecapTeamStatsResponse",
|
|
1252
|
+
'400': "BadRequestErrorResponseDto",
|
|
1253
|
+
'401': "UnauthorizedErrorResponseDto",
|
|
1254
|
+
'404': "NotFoundErrorResponseDto",
|
|
1255
|
+
}
|
|
1256
|
+
response_data = self.api_client.call_api(
|
|
1257
|
+
*_param,
|
|
1258
|
+
_request_timeout=_request_timeout
|
|
1259
|
+
)
|
|
1260
|
+
response_data.read()
|
|
1261
|
+
return self.api_client.response_deserialize(
|
|
1262
|
+
response_data=response_data,
|
|
1263
|
+
response_types_map=_response_types_map,
|
|
1264
|
+
)
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
@validate_call
|
|
1268
|
+
def get_game_recap_team_stats_without_preload_content(
|
|
1269
|
+
self,
|
|
1270
|
+
video_id: StrictStr,
|
|
1271
|
+
_request_timeout: Union[
|
|
1272
|
+
None,
|
|
1273
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1274
|
+
Tuple[
|
|
1275
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1276
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1277
|
+
]
|
|
1278
|
+
] = None,
|
|
1279
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1280
|
+
_content_type: Optional[StrictStr] = None,
|
|
1281
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1282
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1283
|
+
) -> RESTResponseType:
|
|
1284
|
+
"""Get the Game Recap Team Stats for a specific Game.
|
|
1285
|
+
|
|
1286
|
+
Retrieves a detailed statistical breakdown for both the home and away teams, covering offense, defense, and special teams performance.
|
|
1287
|
+
|
|
1288
|
+
:param video_id: (required)
|
|
1289
|
+
:type video_id: str
|
|
1290
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1291
|
+
number provided, it will be total request
|
|
1292
|
+
timeout. It can also be a pair (tuple) of
|
|
1293
|
+
(connection, read) timeouts.
|
|
1294
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1295
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1296
|
+
request; this effectively ignores the
|
|
1297
|
+
authentication in the spec for a single request.
|
|
1298
|
+
:type _request_auth: dict, optional
|
|
1299
|
+
:param _content_type: force content-type for the request.
|
|
1300
|
+
:type _content_type: str, Optional
|
|
1301
|
+
:param _headers: set to override the headers for a single
|
|
1302
|
+
request; this effectively ignores the headers
|
|
1303
|
+
in the spec for a single request.
|
|
1304
|
+
:type _headers: dict, optional
|
|
1305
|
+
:param _host_index: set to override the host_index for a single
|
|
1306
|
+
request; this effectively ignores the host_index
|
|
1307
|
+
in the spec for a single request.
|
|
1308
|
+
:type _host_index: int, optional
|
|
1309
|
+
:return: Returns the result object.
|
|
1310
|
+
""" # noqa: E501
|
|
1311
|
+
|
|
1312
|
+
_param = self._get_game_recap_team_stats_serialize(
|
|
1313
|
+
video_id=video_id,
|
|
1314
|
+
_request_auth=_request_auth,
|
|
1315
|
+
_content_type=_content_type,
|
|
1316
|
+
_headers=_headers,
|
|
1317
|
+
_host_index=_host_index
|
|
1318
|
+
)
|
|
1319
|
+
|
|
1320
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1321
|
+
'200': "GameRecapTeamStatsResponse",
|
|
1322
|
+
'400': "BadRequestErrorResponseDto",
|
|
1323
|
+
'401': "UnauthorizedErrorResponseDto",
|
|
1324
|
+
'404': "NotFoundErrorResponseDto",
|
|
1325
|
+
}
|
|
1326
|
+
response_data = self.api_client.call_api(
|
|
1327
|
+
*_param,
|
|
1328
|
+
_request_timeout=_request_timeout
|
|
1329
|
+
)
|
|
1330
|
+
return response_data.response
|
|
1331
|
+
|
|
1332
|
+
|
|
1333
|
+
def _get_game_recap_team_stats_serialize(
|
|
1334
|
+
self,
|
|
1335
|
+
video_id,
|
|
1336
|
+
_request_auth,
|
|
1337
|
+
_content_type,
|
|
1338
|
+
_headers,
|
|
1339
|
+
_host_index,
|
|
1340
|
+
) -> RequestSerialized:
|
|
1341
|
+
|
|
1342
|
+
_host = None
|
|
1343
|
+
|
|
1344
|
+
_collection_formats: Dict[str, str] = {
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
_path_params: Dict[str, str] = {}
|
|
1348
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1349
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1350
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1351
|
+
_files: Dict[
|
|
1352
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1353
|
+
] = {}
|
|
1354
|
+
_body_params: Optional[bytes] = None
|
|
1355
|
+
|
|
1356
|
+
# process the path parameters
|
|
1357
|
+
if video_id is not None:
|
|
1358
|
+
_path_params['videoId'] = video_id
|
|
1359
|
+
# process the query parameters
|
|
1360
|
+
# process the header parameters
|
|
1361
|
+
# process the form parameters
|
|
1362
|
+
# process the body parameter
|
|
1363
|
+
|
|
1364
|
+
|
|
1365
|
+
# set the HTTP header `Accept`
|
|
1366
|
+
if 'Accept' not in _header_params:
|
|
1367
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1368
|
+
[
|
|
1369
|
+
'application/json'
|
|
1370
|
+
]
|
|
1371
|
+
)
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
# authentication setting
|
|
1375
|
+
_auth_settings: List[str] = [
|
|
1376
|
+
'Client-App-Token',
|
|
1377
|
+
'Client-App-Id'
|
|
1378
|
+
]
|
|
1379
|
+
|
|
1380
|
+
return self.api_client.param_serialize(
|
|
1381
|
+
method='GET',
|
|
1382
|
+
resource_path='/api/v1/client/game-recap/{videoId}/team-stats',
|
|
1383
|
+
path_params=_path_params,
|
|
1384
|
+
query_params=_query_params,
|
|
1385
|
+
header_params=_header_params,
|
|
1386
|
+
body=_body_params,
|
|
1387
|
+
post_params=_form_params,
|
|
1388
|
+
files=_files,
|
|
1389
|
+
auth_settings=_auth_settings,
|
|
1390
|
+
collection_formats=_collection_formats,
|
|
1391
|
+
_host=_host,
|
|
1392
|
+
_request_auth=_request_auth
|
|
1393
|
+
)
|
|
1394
|
+
|
|
1395
|
+
|