Skip to content

Michaelcoding15/TBArequest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Unofficial wrapper to request data from The Blue Alliance API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published