| Crates.io | vatcheckapi |
| lib.rs | vatcheckapi |
| version | 0.1.0 |
| created_at | 2025-10-02 09:16:08.345722+00 |
| updated_at | 2025-10-02 09:16:08.345722+00 |
| description | Rust client for vatcheckapi.com (status, validate) |
| homepage | https://vatcheckapi.com/ |
| repository | https://github.com/everapihq/vatcheckapi-rs |
| max_upload_size | |
| id | 1864078 |
| size | 54,589 |
Rust client for the vatcheckapi.com API.
[dependencies]
vatcheckapi = "0.1"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
use vatcheckapi::{Client, AuthMethod};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::builder("YOUR_API_KEY")
.with_auth_method(AuthMethod::Header)
.build();
let status = client.status().await?;
println!("{:?}", status);
let resp = client.validate(&serde_json::json!({"vat_number": "DE123456789"})).await?;
println!("{:?}", resp);
Ok(())
}