use crate::url;
use crate::http_client::HttpClient;

pub async fn get_request(user: String) -> String {
    let url = url(&"profile_get") + &"?handle=" + &user;

    let client = HttpClient::new();
    match client.get_with_auth(&url).await {
        Ok(response) => response,
        Err(e) => {
            eprintln!("Error getting profile: {}", e);
            "err".to_string()
        }
    }
}
