Skip to content

Pulling data: basics

Will Davies edited this page Jan 25, 2017 · 3 revisions

First, point your browser to https://www.thebluealliance.com/apidocs.

Here you will find API docs for their API. If you look on the left side, there is a column with several categories. My TBA-API contains every pull request found under Team Requests, Event Requests, Match Requests, and District Requests. The models used in my API are exactly the same as the models defined on the TBA API-docs: Team, Event, Match, Award, Media, and Robot.

Data can be pulled two different ways.

  • Pulling data from the TBA class, which contains all of the pull requests.
  • Pulling data from TeamRequest, EventRequest, MatchRequest, or DistrictRequest. These four classes each contain their respective data pull requests.

In this tutorial, I'll describe all the methods using the TBA class, but if you'd like to be more organized, you can also use any of the four data pull classes.

After you've set your APPID, create a new TBA object like so:
TBA tba = new TBA();

You're ready to start pulling data!

Clone this wiki locally