use crate::{de::PhishingDB, utils::http_get_bz, PhishtankClient, PhishtankResult};
impl PhishtankClient {
pub fn download_db(&self) -> PhishtankResult<Vec<PhishingDB>> {
let endpoint_url = format!(
"{}/{}/online-valid.json.bz2",
&self.data_endpoint, self.api_key
);
http_get_bz(&self.user_agent, &endpoint_url)
}
}