Skip to content

Latest commit

 

History

History
62 lines (40 loc) · 1.53 KB

TBAApi.md

File metadata and controls

62 lines (40 loc) · 1.53 KB

TbaApiV3client.TBAApi

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

Method HTTP request Description
getStatus GET /status

getStatus

APIStatus getStatus(opts)

Returns API status, and TBA status information.

Example

import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

let apiInstance = new TbaApiV3client.TBAApi();
let opts = {
  'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getStatus(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
ifModifiedSince String Value of the `Last-Modified` 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