Crates.io | ipbase-rs |
lib.rs | ipbase-rs |
version | 0.1.0 |
source | src |
created_at | 2022-09-09 11:18:27.110299 |
updated_at | 2022-09-09 11:18:27.110299 |
description | An api wrapper for ipbase.com |
homepage | https://github.com/everapihq/ipbase-rs |
repository | https://github.com/everapihq/ipbase-rs |
max_upload_size | |
id | 661801 |
size | 11,064 |
This package is a Rust wrapper for ipbase.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]
ipbase = "0.1.0"
use ipbase::Ipbase;
use ipbase::models;
async fn request_latest() -> Result<models::DetailsResponse, ipbase::Error> {
let ipbase_api = Ipbase::new("<your-api-key>")?;
let details = ipbase_api.info("1.1.1.1").await?;
Ok(details)
}
Find out more about our endpoints, parameters and response data structure in the docs
The MIT License (MIT). Please see License File for more information.