rust-woocommerce 0.1.3

Framework for woocommerce
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use rust_woocommerce::{ApiClient, Config, Data};
use tracing::info;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    tracing_subscriber::fmt::init();
    let config = Config::new("woo.toml")?;
    let client = ApiClient::new(&config)?;
    let data = client.list_all::<Data>().await?;
    info!("Got {} data", data.len());
    Ok(())
}