Skip to main content

fetch_catalog_from_api

Function fetch_catalog_from_api 

Source
pub fn fetch_catalog_from_api(
    account_id: &str,
    token: &SecretString,
    timeout: Duration,
) -> Result<Value, CloudflareError>
Expand description

Fetch the live catalog from the Cloudflare API, following pagination.

Blocking, with FETCH_TIMEOUT as the overall request budget. The token is consumed exclusively through auth_header; every error path scrubs the token from any text it carries (see [redact_token]).