All URIs are relative to https://www.thebluealliance.com/api/v3
Method | HTTP request | Description |
---|---|---|
get_district_rankings | GET /district/{district_key}/rankings | |
get_district_teams | GET /district/{district_key}/teams | |
get_district_teams_keys | GET /district/{district_key}/teams/keys | |
get_district_teams_simple | GET /district/{district_key}/teams/simple | |
get_event_teams | GET /event/{event_key}/teams | |
get_event_teams_keys | GET /event/{event_key}/teams/keys | |
get_event_teams_simple | GET /event/{event_key}/teams/simple | |
get_event_teams_statuses | GET /event/{event_key}/teams/statuses | |
get_team | GET /team/{team_key} | |
get_team_awards | GET /team/{team_key}/awards | |
get_team_awards_by_year | GET /team/{team_key}/awards/{year} | |
get_team_districts | GET /team/{team_key}/districts | |
get_team_event_awards | GET /team/{team_key}/event/{event_key}/awards | |
get_team_event_matches | GET /team/{team_key}/event/{event_key}/matches | |
get_team_event_matches_keys | GET /team/{team_key}/event/{event_key}/matches/keys | |
get_team_event_matches_simple | GET /team/{team_key}/event/{event_key}/matches/simple | |
get_team_event_status | GET /team/{team_key}/event/{event_key}/status | |
get_team_events | GET /team/{team_key}/events | |
get_team_events_by_year | GET /team/{team_key}/events/{year} | |
get_team_events_by_year_keys | GET /team/{team_key}/events/{year}/keys | |
get_team_events_by_year_simple | GET /team/{team_key}/events/{year}/simple | |
get_team_events_keys | GET /team/{team_key}/events/keys | |
get_team_events_simple | GET /team/{team_key}/events/simple | |
get_team_events_statuses_by_year | GET /team/{team_key}/events/{year}/statuses | |
get_team_matches_by_year | GET /team/{team_key}/matches/{year} | |
get_team_matches_by_year_keys | GET /team/{team_key}/matches/{year}/keys | |
get_team_matches_by_year_simple | GET /team/{team_key}/matches/{year}/simple | |
get_team_media_by_tag | GET /team/{team_key}/media/tag/{media_tag} | |
get_team_media_by_tag_year | GET /team/{team_key}/media/tag/{media_tag}/{year} | |
get_team_media_by_year | GET /team/{team_key}/media/{year} | |
get_team_robots | GET /team/{team_key}/robots | |
get_team_simple | GET /team/{team_key}/simple | |
get_team_social_media | GET /team/{team_key}/social_media | |
get_team_years_participated | GET /team/{team_key}/years_participated | |
get_teams | GET /teams/{page_num} | |
get_teams_by_year | GET /teams/{year}/{page_num} | |
get_teams_by_year_keys | GET /teams/{year}/{page_num}/keys | |
get_teams_by_year_simple | GET /teams/{year}/{page_num}/simple | |
get_teams_keys | GET /teams/{page_num}/keys | |
get_teams_simple | GET /teams/{page_num}/simple |
list[DistrictRanking] get_district_rankings(district_key, if_modified_since=if_modified_since)
Gets a list of team district rankings for the given district.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
district_key = 'district_key_example' # str | TBA District Key, eg `2016fim`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_district_rankings(district_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_district_rankings: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
district_key | str | TBA District Key, eg `2016fim` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Team] get_district_teams(district_key, if_modified_since=if_modified_since)
Gets a list of Team
objects that competed in events in the given district.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
district_key = 'district_key_example' # str | TBA District Key, eg `2016fim`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_district_teams(district_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_district_teams: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
district_key | str | TBA District Key, eg `2016fim` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[str] get_district_teams_keys(district_key, if_modified_since=if_modified_since)
Gets a list of Team
objects that competed in events in the given district.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
district_key = 'district_key_example' # str | TBA District Key, eg `2016fim`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_district_teams_keys(district_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_district_teams_keys: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
district_key | str | TBA District Key, eg `2016fim` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
list[str]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[TeamSimple] get_district_teams_simple(district_key, if_modified_since=if_modified_since)
Gets a short-form list of Team
objects that competed in events in the given district.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
district_key = 'district_key_example' # str | TBA District Key, eg `2016fim`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_district_teams_simple(district_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_district_teams_simple: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
district_key | str | TBA District Key, eg `2016fim` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Team] get_event_teams(event_key, if_modified_since=if_modified_since)
Gets a list of Team
objects that competed in the given event.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
event_key = 'event_key_example' # str | TBA Event Key, eg `2016nytr`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_event_teams(event_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_event_teams: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
event_key | str | TBA Event Key, eg `2016nytr` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[str] get_event_teams_keys(event_key, if_modified_since=if_modified_since)
Gets a list of Team
keys that competed in the given event.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
event_key = 'event_key_example' # str | TBA Event Key, eg `2016nytr`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_event_teams_keys(event_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_event_teams_keys: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
event_key | str | TBA Event Key, eg `2016nytr` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
list[str]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[TeamSimple] get_event_teams_simple(event_key, if_modified_since=if_modified_since)
Gets a short-form list of Team
objects that competed in the given event.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
event_key = 'event_key_example' # str | TBA Event Key, eg `2016nytr`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_event_teams_simple(event_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_event_teams_simple: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
event_key | str | TBA Event Key, eg `2016nytr` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
dict(str, TeamEventStatus) get_event_teams_statuses(event_key, if_modified_since=if_modified_since)
Gets a key-value list of the event statuses for teams competing at the given event.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
event_key = 'event_key_example' # str | TBA Event Key, eg `2016nytr`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_event_teams_statuses(event_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_event_teams_statuses: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
event_key | str | TBA Event Key, eg `2016nytr` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Team get_team(team_key, if_modified_since=if_modified_since)
Gets a Team
object for the team referenced by the given key.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team(team_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Award] get_team_awards(team_key, if_modified_since=if_modified_since)
Gets a list of awards the given team has won.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_awards(team_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_awards: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Award] get_team_awards_by_year(team_key, year, if_modified_since=if_modified_since)
Gets a list of awards the given team has won in a given year.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
year = 56 # int | Competition Year (or Season). Must be 4 digits.
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_awards_by_year(team_key, year, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_awards_by_year: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
year | int | Competition Year (or Season). Must be 4 digits. | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[DistrictList] get_team_districts(team_key, if_modified_since=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.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_districts(team_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_districts: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Award] get_team_event_awards(team_key, event_key, if_modified_since=if_modified_since)
Gets a list of awards the given team won at the given event.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
event_key = 'event_key_example' # str | TBA Event Key, eg `2016nytr`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_event_awards(team_key, event_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_event_awards: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
event_key | str | TBA Event Key, eg `2016nytr` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Match] get_team_event_matches(team_key, event_key, if_modified_since=if_modified_since)
Gets a list of matches for the given team and event.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
event_key = 'event_key_example' # str | TBA Event Key, eg `2016nytr`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_event_matches(team_key, event_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_event_matches: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
event_key | str | TBA Event Key, eg `2016nytr` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[str] get_team_event_matches_keys(team_key, event_key, if_modified_since=if_modified_since)
Gets a list of match keys for matches for the given team and event.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
event_key = 'event_key_example' # str | TBA Event Key, eg `2016nytr`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_event_matches_keys(team_key, event_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_event_matches_keys: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
event_key | str | TBA Event Key, eg `2016nytr` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
list[str]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Match] get_team_event_matches_simple(team_key, event_key, if_modified_since=if_modified_since)
Gets a short-form list of matches for the given team and event.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
event_key = 'event_key_example' # str | TBA Event Key, eg `2016nytr`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_event_matches_simple(team_key, event_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_event_matches_simple: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
event_key | str | TBA Event Key, eg `2016nytr` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TeamEventStatus get_team_event_status(team_key, event_key, if_modified_since=if_modified_since)
Gets the competition rank and status of the team at the given event.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
event_key = 'event_key_example' # str | TBA Event Key, eg `2016nytr`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_event_status(team_key, event_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_event_status: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
event_key | str | TBA Event Key, eg `2016nytr` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Event] get_team_events(team_key, if_modified_since=if_modified_since)
Gets a list of all events this team has competed at.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_events(team_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_events: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Event] get_team_events_by_year(team_key, year, if_modified_since=if_modified_since)
Gets a list of events this team has competed at in the given year.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
year = 56 # int | Competition Year (or Season). Must be 4 digits.
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_events_by_year(team_key, year, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_events_by_year: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
year | int | Competition Year (or Season). Must be 4 digits. | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[str] get_team_events_by_year_keys(team_key, year, if_modified_since=if_modified_since)
Gets a list of the event keys for events this team has competed at in the given year.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
year = 56 # int | Competition Year (or Season). Must be 4 digits.
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_events_by_year_keys(team_key, year, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_events_by_year_keys: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
year | int | Competition Year (or Season). Must be 4 digits. | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
list[str]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[EventSimple] get_team_events_by_year_simple(team_key, year, if_modified_since=if_modified_since)
Gets a short-form list of events this team has competed at in the given year.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
year = 56 # int | Competition Year (or Season). Must be 4 digits.
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_events_by_year_simple(team_key, year, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_events_by_year_simple: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
year | int | Competition Year (or Season). Must be 4 digits. | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[str] get_team_events_keys(team_key, if_modified_since=if_modified_since)
Gets a list of the event keys for all events this team has competed at.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_events_keys(team_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_events_keys: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
list[str]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[EventSimple] get_team_events_simple(team_key, if_modified_since=if_modified_since)
Gets a short-form list of all events this team has competed at.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_events_simple(team_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_events_simple: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
dict(str, TeamEventStatus) get_team_events_statuses_by_year(team_key, year, if_modified_since=if_modified_since)
Gets a key-value list of the event statuses for events this team has competed at in the given year.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
year = 56 # int | Competition Year (or Season). Must be 4 digits.
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_events_statuses_by_year(team_key, year, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_events_statuses_by_year: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
year | int | Competition Year (or Season). Must be 4 digits. | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Match] get_team_matches_by_year(team_key, year, if_modified_since=if_modified_since)
Gets a list of matches for the given team and year.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
year = 56 # int | Competition Year (or Season). Must be 4 digits.
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_matches_by_year(team_key, year, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_matches_by_year: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
year | int | Competition Year (or Season). Must be 4 digits. | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[str] get_team_matches_by_year_keys(team_key, year, if_modified_since=if_modified_since)
Gets a list of match keys for matches for the given team and year.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
year = 56 # int | Competition Year (or Season). Must be 4 digits.
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_matches_by_year_keys(team_key, year, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_matches_by_year_keys: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
year | int | Competition Year (or Season). Must be 4 digits. | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
list[str]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[MatchSimple] get_team_matches_by_year_simple(team_key, year, if_modified_since=if_modified_since)
Gets a short-form list of matches for the given team and year.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
year = 56 # int | Competition Year (or Season). Must be 4 digits.
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_matches_by_year_simple(team_key, year, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_matches_by_year_simple: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
year | int | Competition Year (or Season). Must be 4 digits. | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Media] get_team_media_by_tag(team_key, media_tag, if_modified_since=if_modified_since)
Gets a list of Media (videos / pictures) for the given team and tag.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
media_tag = 'media_tag_example' # str | Media Tag which describes the Media.
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_media_by_tag(team_key, media_tag, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_media_by_tag: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
media_tag | str | Media Tag which describes the Media. | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Media] get_team_media_by_tag_year(team_key, media_tag, year, if_modified_since=if_modified_since)
Gets a list of Media (videos / pictures) for the given team, tag and year.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
media_tag = 'media_tag_example' # str | Media Tag which describes the Media.
year = 56 # int | Competition Year (or Season). Must be 4 digits.
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_media_by_tag_year(team_key, media_tag, year, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_media_by_tag_year: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
media_tag | str | Media Tag which describes the Media. | |
year | int | Competition Year (or Season). Must be 4 digits. | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Media] get_team_media_by_year(team_key, year, if_modified_since=if_modified_since)
Gets a list of Media (videos / pictures) for the given team and year.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
year = 56 # int | Competition Year (or Season). Must be 4 digits.
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_media_by_year(team_key, year, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_media_by_year: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
year | int | Competition Year (or Season). Must be 4 digits. | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[TeamRobot] get_team_robots(team_key, if_modified_since=if_modified_since)
Gets a list of year and robot name pairs for each year that a robot name was provided. Will return an empty array if the team has never named a robot.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_robots(team_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_robots: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TeamSimple get_team_simple(team_key, if_modified_since=if_modified_since)
Gets a Team_Simple
object for the team referenced by the given key.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_simple(team_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_simple: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Media] get_team_social_media(team_key, if_modified_since=if_modified_since)
Gets a list of Media (social media) for the given team.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_social_media(team_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_social_media: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[int] get_team_years_participated(team_key, if_modified_since=if_modified_since)
Gets a list of years in which the team participated in at least one competition.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
team_key = 'team_key_example' # str | TBA Team Key, eg `frc254`
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_team_years_participated(team_key, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_team_years_participated: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_key | str | TBA Team Key, eg `frc254` | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
list[int]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Team] get_teams(page_num, if_modified_since=if_modified_since)
Gets a list of Team
objects, paginated in groups of 500.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
page_num = 56 # int | Page number of results to return, zero-indexed
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_teams(page_num, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_teams: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
page_num | int | Page number of results to return, zero-indexed | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Team] get_teams_by_year(year, page_num, if_modified_since=if_modified_since)
Gets a list of Team
objects that competed in the given year, paginated in groups of 500.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
year = 56 # int | Competition Year (or Season). Must be 4 digits.
page_num = 56 # int | Page number of results to return, zero-indexed
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_teams_by_year(year, page_num, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_teams_by_year: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
year | int | Competition Year (or Season). Must be 4 digits. | |
page_num | int | Page number of results to return, zero-indexed | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[str] get_teams_by_year_keys(year, page_num, if_modified_since=if_modified_since)
Gets a list Team Keys that competed in the given year, paginated in groups of 500.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
year = 56 # int | Competition Year (or Season). Must be 4 digits.
page_num = 56 # int | Page number of results to return, zero-indexed
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_teams_by_year_keys(year, page_num, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_teams_by_year_keys: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
year | int | Competition Year (or Season). Must be 4 digits. | |
page_num | int | Page number of results to return, zero-indexed | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
list[str]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[TeamSimple] get_teams_by_year_simple(year, page_num, if_modified_since=if_modified_since)
Gets a list of short form Team_Simple
objects that competed in the given year, paginated in groups of 500.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
year = 56 # int | Competition Year (or Season). Must be 4 digits.
page_num = 56 # int | Page number of results to return, zero-indexed
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_teams_by_year_simple(year, page_num, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_teams_by_year_simple: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
year | int | Competition Year (or Season). Must be 4 digits. | |
page_num | int | Page number of results to return, zero-indexed | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[str] get_teams_keys(page_num, if_modified_since=if_modified_since)
Gets a list of Team keys, paginated in groups of 500. (Note, each page will not have 500 teams, but will include the teams within that range of 500.)
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
page_num = 56 # int | Page number of results to return, zero-indexed
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_teams_keys(page_num, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_teams_keys: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
page_num | int | Page number of results to return, zero-indexed | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
list[str]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[TeamSimple] get_teams_simple(page_num, if_modified_since=if_modified_since)
Gets a list of short form Team_Simple
objects, paginated in groups of 500.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['X-TBA-Auth-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-TBA-Auth-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TeamApi(swagger_client.ApiClient(configuration))
page_num = 56 # int | Page number of results to return, zero-indexed
if_modified_since = 'if_modified_since_example' # str | Value of the `Last-Modified` header in the most recently cached response by the client. (optional)
try:
api_response = api_instance.get_teams_simple(page_num, if_modified_since=if_modified_since)
pprint(api_response)
except ApiException as e:
print("Exception when calling TeamApi->get_teams_simple: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
page_num | int | Page number of results to return, zero-indexed | |
if_modified_since | str | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]