record_api_call: Record an API call for usage tracking

View source: R/utils-usage-tracking.R

record_api_callR Documentation

Record an API call for usage tracking

Description

This function is called internally by KvK API functions to track usage for cost calculation. Only production API calls are recorded.

Usage

record_api_call(call_type, test_environment = FALSE)

Arguments

call_type

Character string indicating the type of API call ("search", "basisprofiel", "vestigingsprofiel", "naamgeving")

test_environment

Logical indicating if this was a test environment call


kvkapiR documentation built on June 25, 2025, 5:11 p.m.