use crate::api::{ApiClient, ApiError, ApiMethod, ApiResponse};
use serde_json::json;
use std::collections::HashMap;
pub async fn users_info(client: &ApiClient, user: String) -> Result<ApiResponse, ApiError> {
let mut params = HashMap::new();
params.insert("user".to_string(), json!(user));
client.call_method(ApiMethod::UsersInfo, params).await
}
#[cfg(test)]
mod tests {
use super::*;
#[tokio::test]
async fn test_users_info_basic() {
let client = ApiClient::with_token("test_token".to_string());
let result = users_info(&client, "U123456".to_string()).await;
assert!(result.is_err());
}
}