pub fn new(api_key: String) -> Self {
		let crates_name = env::var("CARGO_PKG_NAME").unwrap_or("unknown".to_string());

		let crates_version = &env::var("CARGO_PKG_VERSION").unwrap_or("unknown".to_string());
		let ua = format!("libproxer-rust({}/v{})", crates_name, crates_version);

		Self {
			api_key: api_key,
			base_uri: API_BASE_PATH.to_string(),
			user_agent: ua,
			config: ClientConfig::default(),
			last_request: Arc::new(Mutex::new(None)),
		}
	}
/// Create a new api client with a given api key
Create a new api client with a given api key
Create a new api client with a given api key
pub fn new(api_key: String) -> Self {
		let crates_name = env::var("CARGO_PKG_NAME").unwrap_or("unknown".to_string());
		let crates_version = &env::var("CARGO_PKG_VERSION").unwrap_or("unknown".to_string());
		let ua = format!("libproxer-rust({}/v{})", crates_name, crates_version);
		Self {
			api_key: api_key,
			base_uri: API_BASE_PATH.to_string(),
			user_agent: ua,
			config: ClientConfig::default(),
			last_request: Arc::new(Mutex::new(None)),
		}
	}
pub fn new ( api_key : String ) -> Self { let crates_name = env :: var ( " " ) . unwrap_or ( " " . to_string ( ) ) ; let crates_version = & env :: var ( " " ) . unwrap_or ( " " . to_string ( ) ) ; let ua = format ! ( " " crates_name crates_version ) ; Self { api_key : api_key , base_uri : API_BASE_PATH . to_string ( ) , user_agent : ua , config : ClientConfig :: default ( ) , last_request : Arc :: new ( Mutex :: new ( None ) ) , } }
Create a new api client with a given api key
Create a new api client with a given api key
api_key
String