Skip to content

CFBD/cbbd-python

Repository files navigation

cbbd

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.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.1.3
  • Package version: 1.1.3
  • Generator version: 7.11.0
  • Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen

Requirements.

Python 3.7+

Installation & Usage

pip install

pip install [email protected]

(you may need to run pip with root permission: sudo pip install [email protected])

Then import the package:

import cbbd

Getting Started

Please follow the installation procedure and then run the following:

import time
import cbbd
from cbbd.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.collegebasketballdata.com
# See configuration.py for a list of all supported configuration parameters.
configuration = cbbd.Configuration(
    host = "https://api.collegebasketballdata.com"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: apiKey
configuration = cbbd.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
with cbbd.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cbbd.ConferencesApi(api_client)

    try:
        api_response = api_instance.get_conferences()
        print("The response of ConferencesApi->get_conferences:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling ConferencesApi->get_conferences: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.collegebasketballdata.com

Class Method HTTP request Description
ConferencesApi get_conferences GET /conferences
GamesApi get_broadcasts GET /games/media
GamesApi get_game_players GET /games/players
GamesApi get_game_teams GET /games/teams
GamesApi get_games GET /games
PlaysApi get_play_types GET /plays/types
PlaysApi get_plays GET /plays/game/{gameId}
PlaysApi get_plays_by_date GET /plays/date
PlaysApi get_plays_by_player_id GET /plays/player/{playerId}
PlaysApi get_plays_by_team GET /plays/team
StatsApi get_player_season_stats GET /stats/player/season
StatsApi get_team_season_stats GET /stats/team/season
TeamsApi get_teams GET /teams
VenuesApi get_venues GET /venues

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

apiKey

  • Type: Bearer authentication

Author

[email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages