use church_core::{ChurchApiClient, ChurchCoreConfig}; #[tokio::main] async fn main() { let config = ChurchCoreConfig::new(); match ChurchApiClient::new(config) { Ok(client) => { match client.get_recent_sermons(Some(5)).await { Ok(sermons) => { let client_sermons: Vec = sermons .into_iter() .map(church_core::ClientSermon::from) .collect(); println!("🎬 Raw JSON output:"); match serde_json::to_string_pretty(&client_sermons) { Ok(json) => println!("{}", json), Err(e) => println!("❌ JSON serialization error: {}", e), } }, Err(e) => { println!("❌ Failed to get sermons: {}", e); } } } Err(e) => { println!("❌ Failed to create client: {}", e); } } }