| Crates.io | currencyapi-rs |
| lib.rs | currencyapi-rs |
| version | 0.1.0 |
| created_at | 2022-09-09 08:47:53.625934+00 |
| updated_at | 2022-09-09 08:47:53.625934+00 |
| description | An api wrapper for currencyapi.com |
| homepage | https://github.com/everapihq/currencyapi-rs |
| repository | https://github.com/everapihq/currencyapi-rs |
| max_upload_size | |
| id | 661708 |
| size | 15,393 |
This package is a Rust wrapper for currencyapi.com that aims to make the usage of the API as easy as possible in your project.
This crate is under development. Especially the response parsing needs some more testing. However, if you still want to use it, you can install it by adding this to your Cargo.toml:
[dependencies]
currencyapi = "0.1.0"
use currencyapi::Currencyapi;
use currencyapi::models;
async fn request_latest() -> Result<models::DetailsResponse, currencyapi::Error> {
let c_api = Currencyapi::new("<your-api-key>")?;
let details = c_api.latest("id-of-a-fuel-station").await?;
Ok(details)
}
Endpoints accessible with a free account:
statuscurrencieslatesthistoricalThese advanced endpoints currently require a paid subscription:
convertrangeFind out more about our endpoints, parameters and response data structure in the docs
The MIT License (MIT). Please see License File for more information.