Base R6 class for creating API service wrappers. This class provides a foundation for building service-specific API clients with authentication, endpoint management, and configuration.
.clientAn api_client instance for making API requests
new()Create a new API service instance
api_service$new(
client = NULL,
chain = NULL,
endpoints = list(),
config = list()
)clientAn api_client instance. If NULL, a new client will be created.
chainA credential_chain instance for authentication. Optional.
endpointsA named list where names are endpoint paths (e.g., "v1.0", "beta")
and values are R6 class objects (not instances) to use for creating resources.
Defaults to an empty list. If the value is NULL, api_resource will be used.
configA list of configuration options. Defaults to an empty list.
A new api_service object