Skip to content

Latest commit

 

History

History
73 lines (47 loc) · 1.53 KB

File metadata and controls

73 lines (47 loc) · 1.53 KB

AuthApi

All URIs are relative to https://members-ng.iracing.com

Method HTTP request Description
postAuth POST /auth

postAuth

postAuth(post_auth_request)

Example

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);

Parameters

Name Type Description Notes
post_auth_request PostAuthRequest [Optional]

Return type

void (Empty response body)

Authorization

bearerAuth

HTTP request headers

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

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