1.20.0 • Published 3 months ago

cbbd v1.20.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

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 CollegeBasketballData.com website.

This TypeScript package is automatically generated by the Hey API project:

  • API version: 1.6.0
  • Package version: 1.6.1

Requirements.

Node 18+

Installation

npm install

npm install cbbd

yarn install

yarn add cbbd

pnpm install

pnpm add cbbd

Usage

Authorization

To authorize requests, use the setConfig method to set the Authorization header using your personal API key. API keys can be acquired from the CollegeBasketballData.com website.

import { client } from 'cbbd';

client.setConfig({
    headers: {
        'Authorization': 'Bearer YOUR_API_KEY',
    }
});

Example Usage

All API operations can be imported from the cbbd package and used as shown below.

import { client, getGames } from 'cbbd';

// Set up the client with your API key
client.setConfig({
    headers: {
        'Authorization': 'Bearer YOUR_API_KEY',
    }
});

// Call the getGames endpoint
const games = await getGames({
    query: {
        season: 2025,
    },
});

for (const game of games.data ?? []) {
    // Do something with the game data
    // For example:
    console.log(`${game.awayTeam} vs ${game.homeTeam} - ${game.excitement}`);
}

Author

admin@collegefootballdata.com

1.19.0

3 months ago

1.18.1

3 months ago

1.19.2

3 months ago

1.19.1

3 months ago

1.18.2

3 months ago

1.20.0

3 months ago

1.17.1

3 months ago

1.17.0

3 months ago

1.14.1

4 months ago

1.15.3

4 months ago

1.15.2

4 months ago

1.16.0

4 months ago

1.15.1

4 months ago

1.14.0

4 months ago

1.13.0

4 months ago

1.12.1

4 months ago

1.12.0

4 months ago

1.11.1

4 months ago

1.10.2

4 months ago

1.11.0

4 months ago

1.10.1

4 months ago

1.9.0

4 months ago

1.8.0

4 months ago

1.7.3

4 months ago

1.6.1

4 months ago

1.6.0

4 months ago