yookassa-rs

Crates.ioyookassa-rs
lib.rsyookassa-rs
version1.0.1
created_at2025-04-22 19:18:35.569818+00
updated_at2025-04-22 19:18:35.569818+00
descriptionA library that wraps the yookassa api
homepage
repositoryhttps://github.com/olejaaaaaaaa/yookassa-rs/
max_upload_size
id1644520
size70,510
Oleja (olejaaaaaaaa)

documentation

https://docs.rs/yookassa-rs

README

Yookassa-rs

Simple wrapper around yookassa api

Usage:

use yookassa_rs::prelude::*;
use yookassa_rs::models::*;

#[tokio::main]
async fn main() {

    let shop_id = "1045131";
    let secret_key = "test_1HtqeKIGTQan9ODGjHdfIXTaTv1U3yTU0JDiqUbsGj4";

    let client = YookassaClientBuilder::default()
        .auth(BasicAuth::new(secret_key, shop_id))
        .build();

    let resp = client
        .request(Method::GET, "/payments")
        .send::<ResponsePayments>()
        .await;

    println!("{:?}", resp);
    
}

How to add to own project?

[dependencies]
yookassa_rs = { git = "https://github.com/olejaaaaaaaa/yookassa-rs" }

License

MIT Apache

Documentation

not ready yet

Commit count: 7

cargo fmt