Skip to content

VarunPotti/lemonsqueezy.rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Unofficial Rust SDK for lemonsqueezy

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages