inst/httptest2/redact.R

function(resp) {
  resp |>
    # shorten url
    httptest2::gsub_response(pattern = 'api.congress.gov/', '') |>
    # redact key
    httptest2::gsub_response(pattern = congress::get_congress_key(), '')
}

Try the congress package in your browser

Any scripts or data that you put into this service are public.

congress documentation built on May 29, 2024, 2:37 a.m.