All URIs are relative to https://www.thebluealliance.com/api/v3
Method | HTTP request | Description |
---|---|---|
getDistrictEvents | GET /district/{district_key}/events | |
getDistrictEventsKeys | GET /district/{district_key}/events/keys | |
getDistrictEventsSimple | GET /district/{district_key}/events/simple | |
getDistrictRankings | GET /district/{district_key}/rankings | |
getDistrictTeams | GET /district/{district_key}/teams | |
getDistrictTeamsKeys | GET /district/{district_key}/teams/keys | |
getDistrictTeamsSimple | GET /district/{district_key}/teams/simple | |
getDistrictsByYear | GET /districts/{year} | |
getEventDistrictPoints | GET /event/{event_key}/district_points | |
getTeamDistricts | GET /team/{team_key}/districts |
\TBAAPI\v3client\TBAAPI\v3client\model\Event[] getDistrictEvents($district_key, $if_modified_since)
Gets a list of events in the given district.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKey
$config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKey('X-TBA-Auth-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-TBA-Auth-Key', 'Bearer');
$apiInstance = new TBAAPI\v3client\Api\DistrictApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$district_key = 'district_key_example'; // string | TBA District Key, eg `2016fim`
$if_modified_since = 'if_modified_since_example'; // string | Value of the `Last-Modified` header in the most recently cached response by the client.
try {
$result = $apiInstance->getDistrictEvents($district_key, $if_modified_since);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DistrictApi->getDistrictEvents: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
district_key | string | TBA District Key, eg `2016fim` | |
if_modified_since | string | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
\TBAAPI\v3client\TBAAPI\v3client\model\Event[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string[] getDistrictEventsKeys($district_key, $if_modified_since)
Gets a list of event keys for events in the given district.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKey
$config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKey('X-TBA-Auth-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-TBA-Auth-Key', 'Bearer');
$apiInstance = new TBAAPI\v3client\Api\DistrictApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$district_key = 'district_key_example'; // string | TBA District Key, eg `2016fim`
$if_modified_since = 'if_modified_since_example'; // string | Value of the `Last-Modified` header in the most recently cached response by the client.
try {
$result = $apiInstance->getDistrictEventsKeys($district_key, $if_modified_since);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DistrictApi->getDistrictEventsKeys: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
district_key | string | TBA District Key, eg `2016fim` | |
if_modified_since | string | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
string[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\TBAAPI\v3client\TBAAPI\v3client\model\EventSimple[] getDistrictEventsSimple($district_key, $if_modified_since)
Gets a short-form list of events in the given district.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKey
$config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKey('X-TBA-Auth-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-TBA-Auth-Key', 'Bearer');
$apiInstance = new TBAAPI\v3client\Api\DistrictApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$district_key = 'district_key_example'; // string | TBA District Key, eg `2016fim`
$if_modified_since = 'if_modified_since_example'; // string | Value of the `Last-Modified` header in the most recently cached response by the client.
try {
$result = $apiInstance->getDistrictEventsSimple($district_key, $if_modified_since);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DistrictApi->getDistrictEventsSimple: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
district_key | string | TBA District Key, eg `2016fim` | |
if_modified_since | string | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
\TBAAPI\v3client\TBAAPI\v3client\model\EventSimple[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\TBAAPI\v3client\TBAAPI\v3client\model\DistrictRanking[] getDistrictRankings($district_key, $if_modified_since)
Gets a list of team district rankings for the given district.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKey
$config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKey('X-TBA-Auth-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-TBA-Auth-Key', 'Bearer');
$apiInstance = new TBAAPI\v3client\Api\DistrictApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$district_key = 'district_key_example'; // string | TBA District Key, eg `2016fim`
$if_modified_since = 'if_modified_since_example'; // string | Value of the `Last-Modified` header in the most recently cached response by the client.
try {
$result = $apiInstance->getDistrictRankings($district_key, $if_modified_since);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DistrictApi->getDistrictRankings: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
district_key | string | TBA District Key, eg `2016fim` | |
if_modified_since | string | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
\TBAAPI\v3client\TBAAPI\v3client\model\DistrictRanking[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\TBAAPI\v3client\TBAAPI\v3client\model\Team[] getDistrictTeams($district_key, $if_modified_since)
Gets a list of Team
objects that competed in events in the given district.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKey
$config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKey('X-TBA-Auth-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-TBA-Auth-Key', 'Bearer');
$apiInstance = new TBAAPI\v3client\Api\DistrictApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$district_key = 'district_key_example'; // string | TBA District Key, eg `2016fim`
$if_modified_since = 'if_modified_since_example'; // string | Value of the `Last-Modified` header in the most recently cached response by the client.
try {
$result = $apiInstance->getDistrictTeams($district_key, $if_modified_since);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DistrictApi->getDistrictTeams: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
district_key | string | TBA District Key, eg `2016fim` | |
if_modified_since | string | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
\TBAAPI\v3client\TBAAPI\v3client\model\Team[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string[] getDistrictTeamsKeys($district_key, $if_modified_since)
Gets a list of Team
objects that competed in events in the given district.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKey
$config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKey('X-TBA-Auth-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-TBA-Auth-Key', 'Bearer');
$apiInstance = new TBAAPI\v3client\Api\DistrictApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$district_key = 'district_key_example'; // string | TBA District Key, eg `2016fim`
$if_modified_since = 'if_modified_since_example'; // string | Value of the `Last-Modified` header in the most recently cached response by the client.
try {
$result = $apiInstance->getDistrictTeamsKeys($district_key, $if_modified_since);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DistrictApi->getDistrictTeamsKeys: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
district_key | string | TBA District Key, eg `2016fim` | |
if_modified_since | string | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
string[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\TBAAPI\v3client\TBAAPI\v3client\model\TeamSimple[] getDistrictTeamsSimple($district_key, $if_modified_since)
Gets a short-form list of Team
objects that competed in events in the given district.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKey
$config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKey('X-TBA-Auth-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-TBA-Auth-Key', 'Bearer');
$apiInstance = new TBAAPI\v3client\Api\DistrictApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$district_key = 'district_key_example'; // string | TBA District Key, eg `2016fim`
$if_modified_since = 'if_modified_since_example'; // string | Value of the `Last-Modified` header in the most recently cached response by the client.
try {
$result = $apiInstance->getDistrictTeamsSimple($district_key, $if_modified_since);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DistrictApi->getDistrictTeamsSimple: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
district_key | string | TBA District Key, eg `2016fim` | |
if_modified_since | string | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
\TBAAPI\v3client\TBAAPI\v3client\model\TeamSimple[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\TBAAPI\v3client\TBAAPI\v3client\model\DistrictList[] getDistrictsByYear($year, $if_modified_since)
Gets a list of districts and their corresponding district key, for the given year.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKey
$config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKey('X-TBA-Auth-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-TBA-Auth-Key', 'Bearer');
$apiInstance = new TBAAPI\v3client\Api\DistrictApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$year = 56; // int | Competition Year (or Season). Must be 4 digits.
$if_modified_since = 'if_modified_since_example'; // string | Value of the `Last-Modified` header in the most recently cached response by the client.
try {
$result = $apiInstance->getDistrictsByYear($year, $if_modified_since);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DistrictApi->getDistrictsByYear: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
year | int | Competition Year (or Season). Must be 4 digits. | |
if_modified_since | string | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
\TBAAPI\v3client\TBAAPI\v3client\model\DistrictList[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\TBAAPI\v3client\TBAAPI\v3client\model\EventDistrictPoints getEventDistrictPoints($event_key, $if_modified_since)
Gets a list of team rankings for the Event.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKey
$config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKey('X-TBA-Auth-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-TBA-Auth-Key', 'Bearer');
$apiInstance = new TBAAPI\v3client\Api\DistrictApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$event_key = 'event_key_example'; // string | TBA Event Key, eg `2016nytr`
$if_modified_since = 'if_modified_since_example'; // string | Value of the `Last-Modified` header in the most recently cached response by the client.
try {
$result = $apiInstance->getEventDistrictPoints($event_key, $if_modified_since);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DistrictApi->getEventDistrictPoints: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
event_key | string | TBA Event Key, eg `2016nytr` | |
if_modified_since | string | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
\TBAAPI\v3client\TBAAPI\v3client\model\EventDistrictPoints
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\TBAAPI\v3client\TBAAPI\v3client\model\DistrictList[] getTeamDistricts($team_key, $if_modified_since)
Gets an array of districts representing each year the team was in a district. Will return an empty array if the team was never in a district.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKey
$config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKey('X-TBA-Auth-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = TBAAPI\v3client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-TBA-Auth-Key', 'Bearer');
$apiInstance = new TBAAPI\v3client\Api\DistrictApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$team_key = 'team_key_example'; // string | TBA Team Key, eg `frc254`
$if_modified_since = 'if_modified_since_example'; // string | Value of the `Last-Modified` header in the most recently cached response by the client.
try {
$result = $apiInstance->getTeamDistricts($team_key, $if_modified_since);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DistrictApi->getTeamDistricts: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
team_key | string | TBA Team Key, eg `frc254` | |
if_modified_since | string | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
\TBAAPI\v3client\TBAAPI\v3client\model\DistrictList[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]