Performs a GET request on the endpoint as specified by
resource_url.
request(
resource_url,
base_url = pgs_server(),
user_agent = user_agent_id(),
verbose = FALSE,
warnings = TRUE
)A named list of four elements:
The URL endpoint.
A string describing the status of the response obtained:
'OK' if successful or a description of the error.
JSON response as string.
Endpoint URL. The endpoint is internally appended to the
base_url. It should start with a forward slash ('/').
The PGS REST API base URL.
User agent.
Whether to be verbose.
Whether to print warnings.