Create Maxar / Vantor API Request with Authentication
Source:R/vantor_api_gettoken.R
create_maxar_request.RdHelper function to create an httr2 request with Vantor/Maxar bearer token
or API key authentication and built-in retry logic for transient HTTP errors.
Arguments
- url
Character string. The API endpoint URL.
- token
Character string. Optional bearer token (
access_tokenfromget_maxar_token()).- api_key
Character string. Optional Maxar/Vantor API key.
- verbose
Logical. If
TRUE, prints confirmation of the configured request. Defaults toFALSE.