Skip to content

olejaaaaaaaa/yookassa-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 = "1.0.1"

License

MIT Apache

Documentation

not ready yet

About

Wrapper around Yookassa API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages