| fetch_data_core | R Documentation |
A reusable function to handle the common pattern of fetching data from the API. Handles URL building, request execution, error handling, and response processing.
fetch_data_core(
endpoint,
params,
auth_token,
verbose = FALSE,
enrich_response = TRUE,
processor = process_response
)
endpoint |
Character. API endpoint path (e.g. "ios/sales_report_estimates"). |
params |
List. Query parameters. |
auth_token |
Character. API token. |
verbose |
Logical. Whether to print debug messages. |
enrich_response |
Logical. Whether to enrich the response with metadata. |
processor |
Function. Function to process the response. Defaults to process_response. |
A tibble with the results.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.