diff --git a/README.md b/README.md index 94d489d..f0280a0 100644 --- a/README.md +++ b/README.md @@ -104,8 +104,11 @@ Please follow the [installation](#installation) instruction and execute the foll ```javascript var OneLoginApi = require('one_login_api'); +// You can use either Client or DefaultApi - they are aliases +var api = new OneLoginApi.Client() +// or +// var api = new OneLoginApi.DefaultApi() -var api = new OneLoginApi.DefaultApi() var authorization = "authorization_example"; // {String} var userId = 56; // {Number} Set to the id of the user. var activateFactorRequest = new OneLoginApi.ActivateFactorRequest(); // {ActivateFactorRequest} diff --git a/api/apis.ts b/api/apis.ts index 93aa662..f7cd67d 100644 --- a/api/apis.ts +++ b/api/apis.ts @@ -12,3 +12,6 @@ export class HttpError extends Error { export { RequestFile } from '../model/models'; export const APIS = [DefaultApi]; + +// Export Client as an alias to DefaultApi for better compatibility +export { DefaultApi as Client };