//! Get Customer Exfample
use tmf_client::common::tmf_error::TMFError;
#[cfg(feature = "blocking")]
use tmf_client::{BlockingOperations, TMFClient};
fn main() -> Result<(), TMFError> {
#[cfg(feature = "blocking")]
{
use tmflib::{HasId, HasName};
let clients = TMFClient::new("https://localhost", None)
.tmf629()
.customer()
.list(None)?;
for c in clients {
println!("Name: {} Id: {}", c.get_name(), c.get_id());
}
}
Ok(())
}