use serde_json::Value;
use crate::error::Error;
use super::reqwest::ReqwestClient;
pub trait Client {
fn make_json_request(&self, url: &str, payload: Value, headers: &[(&str, &str)], params: &[(&str, &str)]) -> Result<Value, Error>;
}
pub fn get_reqwest_client() -> Result<Box<dyn Client>, Error> {
Ok(Box::new(ReqwestClient::new()))
}