Retrieves a specific user authorization by ID.
The ID of the authorization to be retrieved.
A promise that resolves to the specified user authorization.
If the HTTP request fails.
// 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.
Filter parameters.
A promise that resolves to authorizations list.
If the HTTP request fails.
// Example usage:
authorizationHistoryService.getAuthorizationHistory(parameters)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error fetching authorization history.`);
});
Static
getRetrieves the singleton instance of the AuthorizationHistoryService class.
The singleton instance of the AuthorizationHistoryService class.
// Usage:
const authorizationHistoryService = AuthorizationHistoryService.getInstance();
Service class for managing authorization history related operations.