Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Updated to support TBA API V3

Latest
Compare
Choose a tag to compare
@DacotahHarvey DacotahHarvey released this 13 Jun 17:26

NOTE: V2 of TBA is no longer supported with this release. To use V2 you MUST use the previous release

This update is a large breaking update to support all of the new changes and endpoints provided in V3.

Library Init

Initializing the library now requires you to have an API Key. Information on how to get one can be found here https://www.thebluealliance.com/apidocs

Function Restructure

The function names follow a format similar to the endpoint structure. Some examples of this are as follows:

/teams -> getTeams()
/team/{team_key}/events/{year}/simple -> getTeamEventsForYearSimple()
/districts -> getDistricts()

Script Updates

Most of the scripts broke with the change to the V3 api. This was mostly due to new endpoints being added that removed a lot of iterative code. Because of this many of the scripts are MUCH faster.

They output for some of the scripts was also updated so they look a bit nicer now!