usps-api 0.0.1

A wrapper around the USPS WebTools API
Documentation
1
2
3
4
5
6
7
8
9
10
11
use usps_api;

#[test]
fn correct_address() {
    let api = usps_api::USPSWebTool::init("348XVRQT1293", "088NI00MI876");
    let home = usps_api::address::USPSAddress::quick("429 2nd Ave W", "104", "Seattle", "WA", "");

    let corrected_address = api.verify_address(home);
    println!("{:?}", corrected_address);
}