tbarequest
v0.2.0
Published
A wrapper to fetch data from The Blue Alliance API
Downloads
14
Maintainers
Readme
TBArequest
Unofficial wrapper to request data from The Blue Alliance API
Install
npm install tbarequestUsage
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
