This is a wrapper R6::R6Class()
that provides a high-level interface for
interacting with the Entrata API.
It handles authentication, request parameter validation and construction, and response parsing, making it easy for developers to work with the API.
Public fields
config
A list containing the Entrata API configuration, including the username, password, and API base URL.
user_agent
The user agent string to use for API requests.
Methods
Method new()
Initializes the Entrata API manager with the provided configuration. If no configuration is provided, the default configuration will be used.
Usage
EntrataAPI$new(config = config::get("entrata"))
Method send_request()
Sends a request to the Entrata API.
Usage
EntrataAPI$send_request(
endpoint,
method,
method_version = "r1",
method_params = list(),
enable_retry = FALSE,
timeout = NULL,
progress = FALSE,
...
)
Arguments
endpoint
The Entrata API endpoint to call.
method
The Entrata API method to use.
method_version
The version of the API method to use.
method_params
A named list of parameters to include in the API request.
enable_retry
Logical, should the request be retried on failure?
timeout
Numeric, the request timeout in seconds.
progress
Logical, should progress be shown for the request?
...
Additional arguments to pass to the underlying
httr2::req_perform()
call.
Method get_report_info()
Retrieves detailed information for a specific Entrata report.
Method get_latest_report_version()
Retrieves the latest version of a specific Entrata report.
Method generate_pre_lease_report()
Generates a pre-lease report in Entrata.