All URIs are relative to https://members-ng.iracing.com
| Method | HTTP request | Description |
|---|---|---|
| postAuth | POST /auth |
postAuth(post_auth_request)
import {
Configuration,
AuthApi,
} from '@iracing-data/api-client-fetch';
import type { PostAuthOperationRequest } 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 AuthApi(config);
const body = {
// PostAuthRequest (optional)
post_auth_request: ...,
} satisfies PostAuthOperationRequest;
try {
const data = await api.postAuth(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| post_auth_request | PostAuthRequest | [Optional] |
void (Empty response body)
- Content-Type:
application/json - Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]