Service class for managing authorization history related operations.

Hierarchy

  • ApiService
    • AuthorizationHistoryService

Methods

  • Retrieves a specific user authorization by ID.

    Parameters

    • authorizationId: string

      The ID of the authorization to be retrieved.

    Returns Promise<Authorization>

    A promise that resolves to the specified user authorization.

    Throws

    If the HTTP request fails.

    Example

    // Example usage:
    authorizationHistoryService.getAuthorization(authorizationId)
    .then((response) => {
    console.log(response);
    })
    .catch((error) => {
    console.error(`Error fetching authorization history.`);
    });
  • Retrieves a list of user authorizations by AuthorizationHistoryParameters. All parameters are optional.

    Parameters

    Returns Promise<AuthorizationList>

    A promise that resolves to authorizations list.

    Throws

    If the HTTP request fails.

    Example

    // Example usage:
    authorizationHistoryService.getAuthorizationHistory(parameters)
    .then((response) => {
    console.log(response);
    })
    .catch((error) => {
    console.error(`Error fetching authorization history.`);
    });
  • Retrieves the singleton instance of the AuthorizationHistoryService class.

    Returns AuthorizationHistoryService

    The singleton instance of the AuthorizationHistoryService class.

    Function

    Static

    Example

    // Usage:
    const authorizationHistoryService = AuthorizationHistoryService.getInstance();