Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avitex/rust-abuseipdb
Rust client for the AbuseIPDB API
https://github.com/avitex/rust-abuseipdb
abuseipdbv2 async rust-lang
Last synced: about 1 month ago
JSON representation
Rust client for the AbuseIPDB API
- Host: GitHub
- URL: https://github.com/avitex/rust-abuseipdb
- Owner: avitex
- License: mit
- Created: 2019-11-29T14:08:57.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-11T09:43:03.000Z (8 months ago)
- Last Synced: 2024-08-09T10:17:28.477Z (5 months ago)
- Topics: abuseipdbv2, async, rust-lang
- Language: Rust
- Size: 20.5 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.com/avitex/rust-abuseipdb.svg?branch=master)](https://travis-ci.com/avitex/rust-abuseipdb)
[![Crate](https://img.shields.io/crates/v/abuseipdb.svg)](https://crates.io/crates/abuseipdb)
[![Docs](https://docs.rs/abuseipdb/badge.svg)](https://docs.rs/abuseipdb)# rust-abuseipdb
**Rust client for the AbuseIPDB API**
Documentation hosted on [docs.rs](https://docs.rs/abuseipdb).```toml
abuseipdb = "0.2.1"
```## Example usage
```rust
use abuseipdb::Client;
use std::net::Ipv4Addr;async fn example() {
let my_ip = Ipv4Addr::new(127, 0, 0, 1).into();
let client = Client::new("");
let response = client.check(my_ip, None, false).await.unwrap();
println!("abuseConfidenceScore: {}", response.data.abuse_confidence_score);
}
```