opennode-client 1.0.1

Client for the Opennode v1 HTTP API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use opennode::rate;
use opennode_client::client::Client;
use opennode_client::list_rates;

/// List currency:
/// `cargo run --example rates`
///
#[tokio::main]
async fn main() {
    let client = Client::from_url("https://dev-api.opennode.co", "");
    let list: rate::Rates = list_rates(&client).await.unwrap();
    println!("{:?}", list)
}