pricing_v0/
pricing_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 res = client
9    //     .get_item_offers(client.get_marketplace_id(), "B0DGJC52FP", "New", None)
10    //     .await?;
11    // println!("Item offers: {:?}", res);
12
13    let res = client
14        .get_item_offers_batch_by_asins(vec!["B0DGJC52FP", "B0BN72FYFG"])
15        .await?;
16    println!("Batch item offers: {:?}", res);
17
18    // let res = client
19    //     .get_listing_offers_batch_by_skus(vec!["YOU_SKU1", "YOU_SKU2"])
20    //     .await?;
21    // println!("Batch listing offers: {:?}", res);
22    
23
24    Ok(())
25}