coinpaprika-api 0.1.0

Coinpaprika API Rust library provides access to Coinpaprika API for applications written in Rust programming language.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use coinpaprika_api::client::Client;
use coinpaprika_api::key::KeyInfo;
use std::error::Error;

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    let client = Client::with_key("<api-key>");

    //
    // Get key info.
    //
    let key: KeyInfo = client.key_info().send().await?;

    println!("key info: {:#?}", key);

    Ok(())
}