You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 28, 2025. It is now read-only.
# The Blue Alliance API Java Library [](https://travis-ci.org/spencerng/blue-alliance-api-java-library)
1
+
# The Blue Alliance API Java Library [![Build Status]https://travis-ci.org/RaiderRobotix/blue-alliance-api-java-library.svg?branch=master
2
2
3
-
Java client library to retrieve data from The Blue Alliance using TBA API com.thebluealliance.api.v3
3
+
Java client library to retrieve data from The Blue Alliance using TBA API v3
4
4
5
-
Full Javadoc documentation can be found [here](http://spencerng.github.io/blue-alliance-api-java-library/)
5
+
Full Javadoc documentation can be found [here](http://raiderrobotix.github.io/blue-alliance-api-java-library/)
6
6
7
7
## Usage
8
8
@@ -13,40 +13,41 @@ Begin by creating a TBA object with your Read TBA API Key. This can be found or
13
13
14
14
### Regular Usage
15
15
16
-
The library allows access to almost all of the calls in [The Blue Alliance API com.thebluealliance.api.v3 documentation](https://www.thebluealliance.com/apidocs/com.thebluealliance.api.v3).
16
+
The library allows access to almost all of the calls in [The Blue Alliance API v3 documentation](https://www.thebluealliance.com/apidocs/v3).
17
17
18
-
They are grouped into requests with team, event, district, or match parameters, and you will need to use the `teamRequest`, `eventRequest`, or `matchRequest` instance variables found in the [`TBA` class](http://spencerng.github.io/blue-alliance-api-java-library/com/thebluealliance/api/com.thebluealliance.api.v3/TBA.html).
18
+
They are grouped into requests with team, event, district, or match parameters, and you will need to use the `teamRequest`, `eventRequest`, or `matchRequest` instance variables found in the [`TBA` class](http://spencerng.github.io/blue-alliance-api-java-library/com/thebluealliance/api/v3/TBA.html).
19
19
20
20
Here is an example of retrieving an array of teams in the FIRST Mid-Atlantic district in 2017:
A list of request methods for each request object can be found [here](http://spencerng.github.io/blue-alliance-api-java-library/com/thebluealliance/api/com.thebluealliance.api.v3/requests/package-summary.html).
24
+
A list of request methods for each request object can be found [here](http://raiderrobotix.github.io/blue-alliance-api-java-library/com/thebluealliance/api/v3/requests/package-summary.html).
25
25
26
26
### Advanced Usage
27
27
28
-
If you want to utilize the `If-Modified-Since` and `Last-Modified` headers, you will need to make a direct URL request with the [`getDataTBA(String urlDirectory, String ifModifiedSince)` method](http://spencerng.github.io/blue-alliance-api-java-library/com/thebluealliance/api/com.thebluealliance.api.v3/requests/DataRequest.html#getDataTBA-java.lang.String-java.lang.String-) in the [`DataRequest` class](http://spencerng.github.io/blue-alliance-api-java-library/com/thebluealliance/api/com.thebluealliance.api.v3/requests/DataRequest.html). This will return an [`APIResponse`](http://spencerng.github.io/blue-alliance-api-java-library/com/thebluealliance/api/com.thebluealliance.api.v3/requests/APIResponse.html) object with JSON data, the HTTP response code, and the `Last-Modified` header.
28
+
If you want to utilize the `If-Modified-Since` and `Last-Modified` headers, you will need to make a direct URL request with the [`getDataTBA(String urlDirectory, String ifModifiedSince)` method](http://spencerng.github.io/blue-alliance-api-java-library/com/thebluealliance/api/v3/requests/DataRequest.html#getDataTBA-java.lang.String-java.lang.String-) in the [`DataRequest` class](http://spencerng.github.io/blue-alliance-api-java-library/com/thebluealliance/api/v3/requests/DataRequest.html). This will return an [`APIResponse`](http://spencerng.github.io/blue-alliance-api-java-library/com/thebluealliance/api/v3/requests/APIResponse.html) object with JSON data, the HTTP response code, and the `Last-Modified` header.
29
29
30
-
The JSON data will need to be deserialized into an object model with a method in the [`Deserializer` class](http://spencerng.github.io/blue-alliance-api-java-library/com/thebluealliance/api/com.thebluealliance.api.v3/Deserializer.html) before being used.
30
+
The JSON data will need to be deserialized into an object model with a method in the [`Deserializer` class](http://spencerng.github.io/blue-alliance-api-java-library/com/thebluealliance/api/v3/Deserializer.html) before being used.
31
31
32
-
Here is an example of continuously fetching the `Match` objects for the 2017 Mount Olive District Event, if they have been updated. Note that this is very inefficient.
32
+
Here is an example of fetching the `Match` objects for the 2017 Mount Olive District Event, if they have been updated.
A list of object model classes and their getter methods for instance variables can be found [here](http://spencerng.github.io/blue-alliance-api-java-library/com/thebluealliance/api/com.thebluealliance.api.v3/models/package-summary.html)
50
+
A list of object model classes and their getter methods for instance variables can be found [here](http://raiderrobotix.github.io/blue-alliance-api-java-library/com/thebluealliance/api/v3/models/package-summary.html). Please note that the `master` branch of this repository contains updated object models for the current season's code, and object models for past seasons can be found in other branches.
50
51
51
52
## Dependencies
52
53
@@ -58,9 +59,7 @@ You will need [Gson](https://github.com/google/gson) to use the released compile
58
59
59
60
Note that you will need Gradle to compile this repository's source code if you do not get Gson.
60
61
61
-
## Examples
62
-
63
62
64
63
## Contact
65
64
66
-
Feel free to contact me at sng1488@gmail.com or create a pull request if you have any questions, fixes, or suggestions.
65
+
Feel free to contact Spencer Ng at sng1488 (at) gmail (dot) com or create a pull request if you have any questions, fixes, or suggestions.
0 commit comments