#haveibeenpwned #api #client #pwnd #pwned

haveibeenpwnd

Provides a client for the Have I Been Pwnd API

3 unstable releases

Uses old Rust 2015

0.2.1 Feb 20, 2017
0.2.0 Jan 7, 2017
0.1.0 Aug 29, 2016

#4 in #haveibeenpwned

MIT license

15KB
382 lines

haveibeenpwnd

A client for the Have I Been Pwned? API v2 for Rust

API reference


  let client = Clientv2::new("test-rust-client");

  let r = client.get_breaches_acct("test@example.com")
                .send()
                .unwrap();

  let r = client.get_breaches()
                .send()
                .unwrap();


  let r = client.get_data_classes().send().unwrap();

  let r = client.get_pastes("test@example.com").send().unwrap();

Dependencies

~13–21MB
~403K SLoC