tbarequest
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

TBArequest

Unofficial wrapper to request data from The Blue Alliance API

Install

npm install tbarequest

Usage

Use the createTBACaller function to create a function that can call the API.

import { createTBACaller } from "tbarequest";

const tba = createTBACaller("api_key")

const status = await tba("/status")
const team = await tba("/teams/{team_key}", 1014)

The tba function can call an endpoint and require all necessary arguments, and then return the results that are type-safe.

Find all the endpoints here.

Coverage

The wrapper covers all endpoints besides endpoints relating to Zebra Motionworks and Timeseries. The endpoints not covered include:

  • /event/{event_key}/matches/timeseries
  • /event/{event_key}/matches/timeseries
  • /match/{match_key}/timeseries
  • /match/{match_key}/zebra_motionworks

Package Sidebar

Install

npm i tbarequest

Weekly Downloads

5

Version

0.2.0

License

MIT

Unpacked Size

455 kB

Total Files

39

Last publish

Collaborators

  • tigerqa