Releases: DacotahHarvey/thebluealliance-phpwrapper
Updated to support TBA API V3
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!
Added Package to Composer
Added the composer.json
file so the package can be easily loaded in VIA composer
All API Functions Included. Base Example Scripts
In the previous version the getDistrictRankings
function was missing. That has since been added in.
There has also been a 2017 scripts folder added to the project with examples of the API being used.
Support for PHP Objects Being Returned
In the first implementation of this Library a call would return the data as it was returned from the API. This was fairly annoying because you had to json_decode
the information immediately after it was returned in order to use it. This release added the ability to specify whether you want to return a PHP Object or a JSON blob with the default being the PHP Object.
First Release
The first release a fully functioning version of the Wrapper.
This version also comes with a sample. This sample can be accessed very using the program Xampp.