public class DataRequest
extends java.lang.Object
| Constructor and Description |
|---|
DataRequest(java.lang.String authKey)
Constructs an object to make a data request
|
| Modifier and Type | Method and Description |
|---|---|
APIResponse |
getDataTBA(java.lang.String urlDirectory)
Retrieves data from TBA API using a URL, without a
If-Modified-Since
header
|
APIResponse |
getDataTBA(java.lang.String urlDirectory,
java.lang.String ifModifiedSince)
Retrieves data from TBA API using a URL and a
If-Modified-Since
header
|
public DataRequest(java.lang.String authKey)
authKey - TBA API com.thebluealliance.api.v3 authentication key
public APIResponse getDataTBA(java.lang.String urlDirectory) throws java.io.IOException
If-Modified-Since
header
urlDirectory - URL subdirectory for the query (e.g. /team/frc25)
APIResponse
object with the API's response
java.io.IOExceptionpublic APIResponse getDataTBA(java.lang.String urlDirectory, java.lang.String ifModifiedSince) throws java.io.IOException
If-Modified-Since header
urlDirectory - URL subdirectory for the query (e.g. /team/frc25)
ifModifiedSince - Value of the Last-Modified header in
the most recently cached response by
the client.
APIResponse
object with the API's response
java.io.IOException