3 releases

0.1.2 Jan 8, 2024
0.1.1 Sep 19, 2023
0.1.0 Sep 7, 2023

#21 in #product

Apache-2.0

95KB
2K SLoC

lemonsqueezy.rs

Example Usage

use lemonsqueezy::modules::products::{Product, ProductFilters};

#[tokio::main]
async fn main() {
    dotenv::dotenv().ok();

    let lemonsqueezy = lemonsqueezy::LemonSqueezy::new(std::env::var("API_KEY").unwrap());

    let product = Product::build(lemonsqueezy);

    let product_filters = ProductFilters {
        store_id: Some(42756),
    };

    let products = product.get_all(Some(product_filters)).await.unwrap();

    println!("{:#?}", products);
}

Docs

Docs can be found here

License

This project is licensed under the Apache License - see the LICENSE.md file for details

Dependencies

~7–19MB
~258K SLoC