Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 1.68 KB

TBAApi.md

File metadata and controls

61 lines (40 loc) · 1.68 KB

tba_api_v3.api.TBAApi

Load the API package

import 'package:tba_api_v3/api.dart';

All URIs are relative to https://www.thebluealliance.com/api/v3

Method HTTP request Description
getStatus GET /status

getStatus

APIStatus getStatus(ifNoneMatch)

Returns API status, and TBA status information.

Example

import 'package:tba_api_v3/api.dart';
// TODO Configure API key authorization: apiKey
//defaultApiClient.getAuthentication<ApiKeyAuth>('apiKey').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('apiKey').apiKeyPrefix = 'Bearer';

final api = TbaApiV3().getTBAApi();
final String ifNoneMatch = ifNoneMatch_example; // String | Value of the `ETag` header in the most recently cached response by the client.

try {
    final response = api.getStatus(ifNoneMatch);
    print(response);
} catch on DioException (e) {
    print('Exception when calling TBAApi->getStatus: $e\n');
}

Parameters

Name Type Description Notes
ifNoneMatch String Value of the ETag header in the most recently cached response by the client. [optional]

Return type

APIStatus

Authorization

apiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]