lemonsqueezy

Crates.iolemonsqueezy
lib.rslemonsqueezy
version0.1.2
sourcesrc
created_at2023-09-07 13:45:31.245641
updated_at2024-01-08 10:45:52.161133
descriptionUnofficial Rust client for the LemonSqueezy API
homepage
repository
max_upload_size
id966247
size122,127
Varun Potti (VarunPotti)

documentation

README

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

Commit count: 0

cargo fmt