All URIs are relative to https://members-ng.iracing.com
| Method | HTTP request | Description |
|---|---|---|
| getCarClass | GET /data/carclass/get | Gets car classes. |
IracingAPIResponse getCarClass()
Gets car classes.
import {
Configuration,
CarclassApi,
} from '@iracing-data/api-client-fetch';
import type { GetCarClassRequest } from '@iracing-data/api-client-fetch';
async function example() {
console.log("🚀 Testing @iracing-data/api-client-fetch SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: bearerAuth
accessToken: "YOUR BEARER TOKEN",
});
const api = new CarclassApi(config);
try {
const data = await api.getCarClass();
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success | * x-ratelimit-limit - * x-ratelimit-remaining - * x-ratelimit-reset - |
| 401 | Access token is missing or invalid. | - |
| 429 | Rate limited | * x-ratelimit-limit - * x-ratelimit-remaining - * x-ratelimit-reset - |
| 503 | Maintenance | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]