All URIs are relative to https://members-ng.iracing.com
| Method | HTTP request | Description |
|---|---|---|
| getTeam | GET /data/team/get | |
| getTeamMembership | GET /data/team/membership |
IracingAPIResponse getTeam(team_id, include_licenses)
import {
Configuration,
TeamApi,
} from '@iracing-data/api-client-fetch';
import type { GetTeamRequest } 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 TeamApi(config);
const body = {
// number
team_id: 8.14,
// boolean | For faster responses, only request when necessary. (optional)
include_licenses: true,
} satisfies GetTeamRequest;
try {
const data = await api.getTeam(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| team_id | number |
[Defaults to undefined] |
|
| include_licenses | boolean |
For faster responses, only request when necessary. | [Optional] [Defaults to undefined] |
- 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]
IracingAPIResponse getTeamMembership()
import {
Configuration,
TeamApi,
} from '@iracing-data/api-client-fetch';
import type { GetTeamMembershipRequest } 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 TeamApi(config);
try {
const data = await api.getTeamMembership();
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]