cbbd 1.2.0__tar.gz → 1.4.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {cbbd-1.2.0 → cbbd-1.4.0}/PKG-INFO +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/README.md +11 -4
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/__init__.py +8 -2
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/api/__init__.py +2 -0
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/api/conferences_api.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/api/games_api.py +1 -1
- cbbd-1.4.0/cbbd/api/lines_api.py +358 -0
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/api/plays_api.py +1 -1
- cbbd-1.4.0/cbbd/api/ratings_api.py +203 -0
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/api/stats_api.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/api/teams_api.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/api/venues_api.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/api_client.py +2 -2
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/configuration.py +3 -3
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/exceptions.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/__init__.py +5 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/conference_history.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/conference_history_teams_inner.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/conference_info.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/game_box_score_players.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/game_box_score_players_players_inner.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/game_box_score_team.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/game_box_score_team_stats.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/game_box_score_team_stats_points.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/game_info.py +1 -1
- cbbd-1.4.0/cbbd/models/game_line_info.py +114 -0
- cbbd-1.4.0/cbbd/models/game_lines.py +125 -0
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/game_media_info.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/game_media_info_broadcasts_inner.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/game_status.py +1 -1
- cbbd-1.4.0/cbbd/models/line_provider_info.py +74 -0
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/play_info.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/play_info_participants_inner.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/play_type_info.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/player_season_stats.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/season_type.py +1 -1
- cbbd-1.4.0/cbbd/models/srs_info.py +80 -0
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/team_info.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/team_roster.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/team_roster_player.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/team_roster_player_hometown.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/team_season_stats.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/team_season_unit_stats.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/team_season_unit_stats_field_goals.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/team_season_unit_stats_fouls.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/team_season_unit_stats_four_factors.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/team_season_unit_stats_points.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/team_season_unit_stats_rebounds.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/team_season_unit_stats_turnovers.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/models/venue_info.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/rest.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd.egg-info/PKG-INFO +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd.egg-info/SOURCES.txt +12 -0
- {cbbd-1.2.0 → cbbd-1.4.0}/pyproject.toml +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/setup.py +2 -2
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_conference_history.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_conference_history_teams_inner.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_conference_info.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_conferences_api.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_game_box_score_players.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_game_box_score_players_players_inner.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_game_box_score_team.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_game_box_score_team_stats.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_game_box_score_team_stats_points.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_game_info.py +1 -1
- cbbd-1.4.0/test/test_game_line_info.py +66 -0
- cbbd-1.4.0/test/test_game_lines.py +96 -0
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_game_media_info.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_game_media_info_broadcasts_inner.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_game_status.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_games_api.py +1 -1
- cbbd-1.4.0/test/test_line_provider_info.py +56 -0
- cbbd-1.4.0/test/test_lines_api.py +44 -0
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_play_info.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_play_info_participants_inner.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_play_type_info.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_player_season_stats.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_plays_api.py +1 -1
- cbbd-1.4.0/test/test_ratings_api.py +38 -0
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_season_type.py +1 -1
- cbbd-1.4.0/test/test_srs_info.py +62 -0
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_stats_api.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_team_info.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_team_roster.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_team_roster_player.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_team_roster_player_hometown.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_team_season_stats.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_team_season_unit_stats.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_team_season_unit_stats_field_goals.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_team_season_unit_stats_fouls.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_team_season_unit_stats_four_factors.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_team_season_unit_stats_points.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_team_season_unit_stats_rebounds.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_team_season_unit_stats_turnovers.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_teams_api.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_venue_info.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/test/test_venues_api.py +1 -1
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/api_response.py +0 -0
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd/py.typed +0 -0
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd.egg-info/dependency_links.txt +0 -0
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd.egg-info/requires.txt +0 -0
- {cbbd-1.2.0 → cbbd-1.4.0}/cbbd.egg-info/top_level.txt +0 -0
- {cbbd-1.2.0 → cbbd-1.4.0}/setup.cfg +0 -0
@@ -3,8 +3,8 @@ This API is in limited Beta for Patreon subscribers. It may have bugs and is sub
|
|
3
3
|
|
4
4
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
5
5
|
|
6
|
-
- API version: 1.
|
7
|
-
- Package version: 1.
|
6
|
+
- API version: 1.4.0
|
7
|
+
- Package version: 1.4.0
|
8
8
|
- Generator version: 7.11.0
|
9
9
|
- Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen
|
10
10
|
|
@@ -16,9 +16,9 @@ Python 3.7+
|
|
16
16
|
### pip install
|
17
17
|
|
18
18
|
```sh
|
19
|
-
pip install cbbd@1.
|
19
|
+
pip install cbbd@1.4.0
|
20
20
|
```
|
21
|
-
(you may need to run `pip` with root permission: `sudo pip install cbbd@1.
|
21
|
+
(you may need to run `pip` with root permission: `sudo pip install cbbd@1.4.0`)
|
22
22
|
|
23
23
|
Then import the package:
|
24
24
|
```python
|
@@ -80,11 +80,14 @@ Class | Method | HTTP request | Description
|
|
80
80
|
*GamesApi* | [**get_game_players**](docs/GamesApi.md#get_game_players) | **GET** /games/players |
|
81
81
|
*GamesApi* | [**get_game_teams**](docs/GamesApi.md#get_game_teams) | **GET** /games/teams |
|
82
82
|
*GamesApi* | [**get_games**](docs/GamesApi.md#get_games) | **GET** /games |
|
83
|
+
*LinesApi* | [**get_lines**](docs/LinesApi.md#get_lines) | **GET** /lines |
|
84
|
+
*LinesApi* | [**get_providers**](docs/LinesApi.md#get_providers) | **GET** /lines/providers |
|
83
85
|
*PlaysApi* | [**get_play_types**](docs/PlaysApi.md#get_play_types) | **GET** /plays/types |
|
84
86
|
*PlaysApi* | [**get_plays**](docs/PlaysApi.md#get_plays) | **GET** /plays/game/{gameId} |
|
85
87
|
*PlaysApi* | [**get_plays_by_date**](docs/PlaysApi.md#get_plays_by_date) | **GET** /plays/date |
|
86
88
|
*PlaysApi* | [**get_plays_by_player_id**](docs/PlaysApi.md#get_plays_by_player_id) | **GET** /plays/player/{playerId} |
|
87
89
|
*PlaysApi* | [**get_plays_by_team**](docs/PlaysApi.md#get_plays_by_team) | **GET** /plays/team |
|
90
|
+
*RatingsApi* | [**get_srs**](docs/RatingsApi.md#get_srs) | **GET** /ratings/srs |
|
88
91
|
*StatsApi* | [**get_player_season_stats**](docs/StatsApi.md#get_player_season_stats) | **GET** /stats/player/season |
|
89
92
|
*StatsApi* | [**get_team_season_stats**](docs/StatsApi.md#get_team_season_stats) | **GET** /stats/team/season |
|
90
93
|
*TeamsApi* | [**get_team_roster**](docs/TeamsApi.md#get_team_roster) | **GET** /teams/roster |
|
@@ -103,14 +106,18 @@ Class | Method | HTTP request | Description
|
|
103
106
|
- [GameBoxScoreTeamStats](docs/GameBoxScoreTeamStats.md)
|
104
107
|
- [GameBoxScoreTeamStatsPoints](docs/GameBoxScoreTeamStatsPoints.md)
|
105
108
|
- [GameInfo](docs/GameInfo.md)
|
109
|
+
- [GameLineInfo](docs/GameLineInfo.md)
|
110
|
+
- [GameLines](docs/GameLines.md)
|
106
111
|
- [GameMediaInfo](docs/GameMediaInfo.md)
|
107
112
|
- [GameMediaInfoBroadcastsInner](docs/GameMediaInfoBroadcastsInner.md)
|
108
113
|
- [GameStatus](docs/GameStatus.md)
|
114
|
+
- [LineProviderInfo](docs/LineProviderInfo.md)
|
109
115
|
- [PlayInfo](docs/PlayInfo.md)
|
110
116
|
- [PlayInfoParticipantsInner](docs/PlayInfoParticipantsInner.md)
|
111
117
|
- [PlayTypeInfo](docs/PlayTypeInfo.md)
|
112
118
|
- [PlayerSeasonStats](docs/PlayerSeasonStats.md)
|
113
119
|
- [SeasonType](docs/SeasonType.md)
|
120
|
+
- [SrsInfo](docs/SrsInfo.md)
|
114
121
|
- [TeamInfo](docs/TeamInfo.md)
|
115
122
|
- [TeamRoster](docs/TeamRoster.md)
|
116
123
|
- [TeamRosterPlayer](docs/TeamRosterPlayer.md)
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
9
9
|
|
10
|
-
The version of the OpenAPI document: 1.
|
10
|
+
The version of the OpenAPI document: 1.4.0
|
11
11
|
Contact: admin@collegefootballdata.com
|
12
12
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
13
13
|
|
@@ -15,12 +15,14 @@
|
|
15
15
|
""" # noqa: E501
|
16
16
|
|
17
17
|
|
18
|
-
__version__ = "1.
|
18
|
+
__version__ = "1.4.0"
|
19
19
|
|
20
20
|
# import apis into sdk package
|
21
21
|
from cbbd.api.conferences_api import ConferencesApi
|
22
22
|
from cbbd.api.games_api import GamesApi
|
23
|
+
from cbbd.api.lines_api import LinesApi
|
23
24
|
from cbbd.api.plays_api import PlaysApi
|
25
|
+
from cbbd.api.ratings_api import RatingsApi
|
24
26
|
from cbbd.api.stats_api import StatsApi
|
25
27
|
from cbbd.api.teams_api import TeamsApi
|
26
28
|
from cbbd.api.venues_api import VenuesApi
|
@@ -46,14 +48,18 @@ from cbbd.models.game_box_score_team import GameBoxScoreTeam
|
|
46
48
|
from cbbd.models.game_box_score_team_stats import GameBoxScoreTeamStats
|
47
49
|
from cbbd.models.game_box_score_team_stats_points import GameBoxScoreTeamStatsPoints
|
48
50
|
from cbbd.models.game_info import GameInfo
|
51
|
+
from cbbd.models.game_line_info import GameLineInfo
|
52
|
+
from cbbd.models.game_lines import GameLines
|
49
53
|
from cbbd.models.game_media_info import GameMediaInfo
|
50
54
|
from cbbd.models.game_media_info_broadcasts_inner import GameMediaInfoBroadcastsInner
|
51
55
|
from cbbd.models.game_status import GameStatus
|
56
|
+
from cbbd.models.line_provider_info import LineProviderInfo
|
52
57
|
from cbbd.models.play_info import PlayInfo
|
53
58
|
from cbbd.models.play_info_participants_inner import PlayInfoParticipantsInner
|
54
59
|
from cbbd.models.play_type_info import PlayTypeInfo
|
55
60
|
from cbbd.models.player_season_stats import PlayerSeasonStats
|
56
61
|
from cbbd.models.season_type import SeasonType
|
62
|
+
from cbbd.models.srs_info import SrsInfo
|
57
63
|
from cbbd.models.team_info import TeamInfo
|
58
64
|
from cbbd.models.team_roster import TeamRoster
|
59
65
|
from cbbd.models.team_roster_player import TeamRosterPlayer
|
@@ -3,7 +3,9 @@
|
|
3
3
|
# import apis into api package
|
4
4
|
from cbbd.api.conferences_api import ConferencesApi
|
5
5
|
from cbbd.api.games_api import GamesApi
|
6
|
+
from cbbd.api.lines_api import LinesApi
|
6
7
|
from cbbd.api.plays_api import PlaysApi
|
8
|
+
from cbbd.api.ratings_api import RatingsApi
|
7
9
|
from cbbd.api.stats_api import StatsApi
|
8
10
|
from cbbd.api.teams_api import TeamsApi
|
9
11
|
from cbbd.api.venues_api import VenuesApi
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -0,0 +1,358 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
College Basketball Data API
|
5
|
+
|
6
|
+
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
9
|
+
Contact: admin@collegefootballdata.com
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
import re # noqa: F401
|
17
|
+
import io
|
18
|
+
import warnings
|
19
|
+
|
20
|
+
from pydantic import validate_arguments, ValidationError
|
21
|
+
|
22
|
+
from typing_extensions import Annotated
|
23
|
+
from datetime import datetime
|
24
|
+
|
25
|
+
from pydantic import Field, StrictInt, StrictStr
|
26
|
+
|
27
|
+
from typing import List, Optional
|
28
|
+
|
29
|
+
from cbbd.models.game_lines import GameLines
|
30
|
+
from cbbd.models.line_provider_info import LineProviderInfo
|
31
|
+
|
32
|
+
from cbbd.api_client import ApiClient
|
33
|
+
from cbbd.api_response import ApiResponse
|
34
|
+
from cbbd.exceptions import ( # noqa: F401
|
35
|
+
ApiTypeError,
|
36
|
+
ApiValueError
|
37
|
+
)
|
38
|
+
|
39
|
+
|
40
|
+
class LinesApi:
|
41
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
42
|
+
Ref: https://openapi-generator.tech
|
43
|
+
|
44
|
+
Do not edit the class manually.
|
45
|
+
"""
|
46
|
+
|
47
|
+
def __init__(self, api_client=None) -> None:
|
48
|
+
if api_client is None:
|
49
|
+
api_client = ApiClient.get_default()
|
50
|
+
self.api_client = api_client
|
51
|
+
|
52
|
+
@validate_arguments
|
53
|
+
def get_lines(self, season : Annotated[Optional[StrictInt], Field(description="Optional season filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team name filter")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference abbreviation filter")] = None, start_date_range : Annotated[Optional[datetime], Field(description="Optional start timestamp in ISO 8601 format")] = None, end_date_range : Annotated[Optional[datetime], Field(description="Optional end timestamp in ISO 8601 format")] = None, **kwargs) -> List[GameLines]: # noqa: E501
|
54
|
+
"""get_lines # noqa: E501
|
55
|
+
|
56
|
+
Returns betting lines for the first 3000 games that match the provided filters, ordered by start date. # noqa: E501
|
57
|
+
This method makes a synchronous HTTP request by default. To make an
|
58
|
+
asynchronous HTTP request, please pass async_req=True
|
59
|
+
|
60
|
+
>>> thread = api.get_lines(season, team, conference, start_date_range, end_date_range, async_req=True)
|
61
|
+
>>> result = thread.get()
|
62
|
+
|
63
|
+
:param season: Optional season filter
|
64
|
+
:type season: int
|
65
|
+
:param team: Optional team name filter
|
66
|
+
:type team: str
|
67
|
+
:param conference: Optional conference abbreviation filter
|
68
|
+
:type conference: str
|
69
|
+
:param start_date_range: Optional start timestamp in ISO 8601 format
|
70
|
+
:type start_date_range: datetime
|
71
|
+
:param end_date_range: Optional end timestamp in ISO 8601 format
|
72
|
+
:type end_date_range: datetime
|
73
|
+
:param async_req: Whether to execute the request asynchronously.
|
74
|
+
:type async_req: bool, optional
|
75
|
+
:param _request_timeout: timeout setting for this request.
|
76
|
+
If one number provided, it will be total request
|
77
|
+
timeout. It can also be a pair (tuple) of
|
78
|
+
(connection, read) timeouts.
|
79
|
+
:return: Returns the result object.
|
80
|
+
If the method is called asynchronously,
|
81
|
+
returns the request thread.
|
82
|
+
:rtype: List[GameLines]
|
83
|
+
"""
|
84
|
+
kwargs['_return_http_data_only'] = True
|
85
|
+
if '_preload_content' in kwargs:
|
86
|
+
message = "Error! Please call the get_lines_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
87
|
+
raise ValueError(message)
|
88
|
+
return self.get_lines_with_http_info(season, team, conference, start_date_range, end_date_range, **kwargs) # noqa: E501
|
89
|
+
|
90
|
+
@validate_arguments
|
91
|
+
def get_lines_with_http_info(self, season : Annotated[Optional[StrictInt], Field(description="Optional season filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team name filter")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference abbreviation filter")] = None, start_date_range : Annotated[Optional[datetime], Field(description="Optional start timestamp in ISO 8601 format")] = None, end_date_range : Annotated[Optional[datetime], Field(description="Optional end timestamp in ISO 8601 format")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
92
|
+
"""get_lines # noqa: E501
|
93
|
+
|
94
|
+
Returns betting lines for the first 3000 games that match the provided filters, ordered by start date. # noqa: E501
|
95
|
+
This method makes a synchronous HTTP request by default. To make an
|
96
|
+
asynchronous HTTP request, please pass async_req=True
|
97
|
+
|
98
|
+
>>> thread = api.get_lines_with_http_info(season, team, conference, start_date_range, end_date_range, async_req=True)
|
99
|
+
>>> result = thread.get()
|
100
|
+
|
101
|
+
:param season: Optional season filter
|
102
|
+
:type season: int
|
103
|
+
:param team: Optional team name filter
|
104
|
+
:type team: str
|
105
|
+
:param conference: Optional conference abbreviation filter
|
106
|
+
:type conference: str
|
107
|
+
:param start_date_range: Optional start timestamp in ISO 8601 format
|
108
|
+
:type start_date_range: datetime
|
109
|
+
:param end_date_range: Optional end timestamp in ISO 8601 format
|
110
|
+
:type end_date_range: datetime
|
111
|
+
:param async_req: Whether to execute the request asynchronously.
|
112
|
+
:type async_req: bool, optional
|
113
|
+
:param _preload_content: if False, the ApiResponse.data will
|
114
|
+
be set to none and raw_data will store the
|
115
|
+
HTTP response body without reading/decoding.
|
116
|
+
Default is True.
|
117
|
+
:type _preload_content: bool, optional
|
118
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
119
|
+
object with status code, headers, etc
|
120
|
+
:type _return_http_data_only: bool, optional
|
121
|
+
:param _request_timeout: timeout setting for this request. If one
|
122
|
+
number provided, it will be total request
|
123
|
+
timeout. It can also be a pair (tuple) of
|
124
|
+
(connection, read) timeouts.
|
125
|
+
:param _request_auth: set to override the auth_settings for an a single
|
126
|
+
request; this effectively ignores the authentication
|
127
|
+
in the spec for a single request.
|
128
|
+
:type _request_auth: dict, optional
|
129
|
+
:type _content_type: string, optional: force content-type for the request
|
130
|
+
:return: Returns the result object.
|
131
|
+
If the method is called asynchronously,
|
132
|
+
returns the request thread.
|
133
|
+
:rtype: tuple(List[GameLines], status_code(int), headers(HTTPHeaderDict))
|
134
|
+
"""
|
135
|
+
|
136
|
+
_params = locals()
|
137
|
+
|
138
|
+
_all_params = [
|
139
|
+
'season',
|
140
|
+
'team',
|
141
|
+
'conference',
|
142
|
+
'start_date_range',
|
143
|
+
'end_date_range'
|
144
|
+
]
|
145
|
+
_all_params.extend(
|
146
|
+
[
|
147
|
+
'async_req',
|
148
|
+
'_return_http_data_only',
|
149
|
+
'_preload_content',
|
150
|
+
'_request_timeout',
|
151
|
+
'_request_auth',
|
152
|
+
'_content_type',
|
153
|
+
'_headers'
|
154
|
+
]
|
155
|
+
)
|
156
|
+
|
157
|
+
# validate the arguments
|
158
|
+
for _key, _val in _params['kwargs'].items():
|
159
|
+
if _key not in _all_params:
|
160
|
+
raise ApiTypeError(
|
161
|
+
"Got an unexpected keyword argument '%s'"
|
162
|
+
" to method get_lines" % _key
|
163
|
+
)
|
164
|
+
_params[_key] = _val
|
165
|
+
del _params['kwargs']
|
166
|
+
|
167
|
+
_collection_formats = {}
|
168
|
+
|
169
|
+
# process the path parameters
|
170
|
+
_path_params = {}
|
171
|
+
|
172
|
+
# process the query parameters
|
173
|
+
_query_params = []
|
174
|
+
if _params.get('season') is not None: # noqa: E501
|
175
|
+
_query_params.append(('season', _params['season']))
|
176
|
+
|
177
|
+
if _params.get('team') is not None: # noqa: E501
|
178
|
+
_query_params.append(('team', _params['team']))
|
179
|
+
|
180
|
+
if _params.get('conference') is not None: # noqa: E501
|
181
|
+
_query_params.append(('conference', _params['conference']))
|
182
|
+
|
183
|
+
if _params.get('start_date_range') is not None: # noqa: E501
|
184
|
+
if isinstance(_params['start_date_range'], datetime):
|
185
|
+
_query_params.append(('startDateRange', _params['start_date_range'].strftime(self.api_client.configuration.datetime_format)))
|
186
|
+
else:
|
187
|
+
_query_params.append(('startDateRange', _params['start_date_range']))
|
188
|
+
|
189
|
+
if _params.get('end_date_range') is not None: # noqa: E501
|
190
|
+
if isinstance(_params['end_date_range'], datetime):
|
191
|
+
_query_params.append(('endDateRange', _params['end_date_range'].strftime(self.api_client.configuration.datetime_format)))
|
192
|
+
else:
|
193
|
+
_query_params.append(('endDateRange', _params['end_date_range']))
|
194
|
+
|
195
|
+
# process the header parameters
|
196
|
+
_header_params = dict(_params.get('_headers', {}))
|
197
|
+
# process the form parameters
|
198
|
+
_form_params = []
|
199
|
+
_files = {}
|
200
|
+
# process the body parameter
|
201
|
+
_body_params = None
|
202
|
+
# set the HTTP header `Accept`
|
203
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
204
|
+
['application/json']) # noqa: E501
|
205
|
+
|
206
|
+
# authentication setting
|
207
|
+
_auth_settings = ['apiKey'] # noqa: E501
|
208
|
+
|
209
|
+
_response_types_map = {
|
210
|
+
'200': "List[GameLines]",
|
211
|
+
}
|
212
|
+
|
213
|
+
return self.api_client.call_api(
|
214
|
+
'/lines', 'GET',
|
215
|
+
_path_params,
|
216
|
+
_query_params,
|
217
|
+
_header_params,
|
218
|
+
body=_body_params,
|
219
|
+
post_params=_form_params,
|
220
|
+
files=_files,
|
221
|
+
response_types_map=_response_types_map,
|
222
|
+
auth_settings=_auth_settings,
|
223
|
+
async_req=_params.get('async_req'),
|
224
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
225
|
+
_preload_content=_params.get('_preload_content', True),
|
226
|
+
_request_timeout=_params.get('_request_timeout'),
|
227
|
+
collection_formats=_collection_formats,
|
228
|
+
_request_auth=_params.get('_request_auth'))
|
229
|
+
|
230
|
+
@validate_arguments
|
231
|
+
def get_providers(self, **kwargs) -> List[LineProviderInfo]: # noqa: E501
|
232
|
+
"""get_providers # noqa: E501
|
233
|
+
|
234
|
+
This method makes a synchronous HTTP request by default. To make an
|
235
|
+
asynchronous HTTP request, please pass async_req=True
|
236
|
+
|
237
|
+
>>> thread = api.get_providers(async_req=True)
|
238
|
+
>>> result = thread.get()
|
239
|
+
|
240
|
+
:param async_req: Whether to execute the request asynchronously.
|
241
|
+
:type async_req: bool, optional
|
242
|
+
:param _request_timeout: timeout setting for this request.
|
243
|
+
If one number provided, it will be total request
|
244
|
+
timeout. It can also be a pair (tuple) of
|
245
|
+
(connection, read) timeouts.
|
246
|
+
:return: Returns the result object.
|
247
|
+
If the method is called asynchronously,
|
248
|
+
returns the request thread.
|
249
|
+
:rtype: List[LineProviderInfo]
|
250
|
+
"""
|
251
|
+
kwargs['_return_http_data_only'] = True
|
252
|
+
if '_preload_content' in kwargs:
|
253
|
+
message = "Error! Please call the get_providers_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
254
|
+
raise ValueError(message)
|
255
|
+
return self.get_providers_with_http_info(**kwargs) # noqa: E501
|
256
|
+
|
257
|
+
@validate_arguments
|
258
|
+
def get_providers_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
|
259
|
+
"""get_providers # noqa: E501
|
260
|
+
|
261
|
+
This method makes a synchronous HTTP request by default. To make an
|
262
|
+
asynchronous HTTP request, please pass async_req=True
|
263
|
+
|
264
|
+
>>> thread = api.get_providers_with_http_info(async_req=True)
|
265
|
+
>>> result = thread.get()
|
266
|
+
|
267
|
+
:param async_req: Whether to execute the request asynchronously.
|
268
|
+
:type async_req: bool, optional
|
269
|
+
:param _preload_content: if False, the ApiResponse.data will
|
270
|
+
be set to none and raw_data will store the
|
271
|
+
HTTP response body without reading/decoding.
|
272
|
+
Default is True.
|
273
|
+
:type _preload_content: bool, optional
|
274
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
275
|
+
object with status code, headers, etc
|
276
|
+
:type _return_http_data_only: bool, optional
|
277
|
+
:param _request_timeout: timeout setting for this request. If one
|
278
|
+
number provided, it will be total request
|
279
|
+
timeout. It can also be a pair (tuple) of
|
280
|
+
(connection, read) timeouts.
|
281
|
+
:param _request_auth: set to override the auth_settings for an a single
|
282
|
+
request; this effectively ignores the authentication
|
283
|
+
in the spec for a single request.
|
284
|
+
:type _request_auth: dict, optional
|
285
|
+
:type _content_type: string, optional: force content-type for the request
|
286
|
+
:return: Returns the result object.
|
287
|
+
If the method is called asynchronously,
|
288
|
+
returns the request thread.
|
289
|
+
:rtype: tuple(List[LineProviderInfo], status_code(int), headers(HTTPHeaderDict))
|
290
|
+
"""
|
291
|
+
|
292
|
+
_params = locals()
|
293
|
+
|
294
|
+
_all_params = [
|
295
|
+
]
|
296
|
+
_all_params.extend(
|
297
|
+
[
|
298
|
+
'async_req',
|
299
|
+
'_return_http_data_only',
|
300
|
+
'_preload_content',
|
301
|
+
'_request_timeout',
|
302
|
+
'_request_auth',
|
303
|
+
'_content_type',
|
304
|
+
'_headers'
|
305
|
+
]
|
306
|
+
)
|
307
|
+
|
308
|
+
# validate the arguments
|
309
|
+
for _key, _val in _params['kwargs'].items():
|
310
|
+
if _key not in _all_params:
|
311
|
+
raise ApiTypeError(
|
312
|
+
"Got an unexpected keyword argument '%s'"
|
313
|
+
" to method get_providers" % _key
|
314
|
+
)
|
315
|
+
_params[_key] = _val
|
316
|
+
del _params['kwargs']
|
317
|
+
|
318
|
+
_collection_formats = {}
|
319
|
+
|
320
|
+
# process the path parameters
|
321
|
+
_path_params = {}
|
322
|
+
|
323
|
+
# process the query parameters
|
324
|
+
_query_params = []
|
325
|
+
# process the header parameters
|
326
|
+
_header_params = dict(_params.get('_headers', {}))
|
327
|
+
# process the form parameters
|
328
|
+
_form_params = []
|
329
|
+
_files = {}
|
330
|
+
# process the body parameter
|
331
|
+
_body_params = None
|
332
|
+
# set the HTTP header `Accept`
|
333
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
334
|
+
['application/json']) # noqa: E501
|
335
|
+
|
336
|
+
# authentication setting
|
337
|
+
_auth_settings = ['apiKey'] # noqa: E501
|
338
|
+
|
339
|
+
_response_types_map = {
|
340
|
+
'200': "List[LineProviderInfo]",
|
341
|
+
}
|
342
|
+
|
343
|
+
return self.api_client.call_api(
|
344
|
+
'/lines/providers', 'GET',
|
345
|
+
_path_params,
|
346
|
+
_query_params,
|
347
|
+
_header_params,
|
348
|
+
body=_body_params,
|
349
|
+
post_params=_form_params,
|
350
|
+
files=_files,
|
351
|
+
response_types_map=_response_types_map,
|
352
|
+
auth_settings=_auth_settings,
|
353
|
+
async_req=_params.get('async_req'),
|
354
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
355
|
+
_preload_content=_params.get('_preload_content', True),
|
356
|
+
_request_timeout=_params.get('_request_timeout'),
|
357
|
+
collection_formats=_collection_formats,
|
358
|
+
_request_auth=_params.get('_request_auth'))
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|