product_fees_v0/product_fees_v0.rs
1use anyhow::Result;
2use amazon_spapi::client::{SpapiClient, SpapiConfig};
3
4#[tokio::main]
5async fn main() -> Result<()> {
6 let client = SpapiClient::new(SpapiConfig::from_env()?)?;
7
8 let fee = client.get_fee_for_asin("B0DGJC52FP", 999.0, true).await?;
9 println!("Fee for ASIN B0DGJC52FP: ${:.2}", fee);
10
11 Ok(())
12}