Show the crate…

1 stable release

1.0.0 Jan 15, 2022

#1054 in #api-client

MIT license

12KB
154 lines

Urban

Urban Dictionary API client for Rust.

Download

Crates

Add the following line to your Cargo.toml file:

urban = "1.0.0"

Example

fn main() {
    let response = urban::UrbanDictionary::new("Rust", 1);
    println!("{:?}", response.data().unwrap());
    println!("{:?}", urban::random().unwrap());
    println!("{:?}", urban::definition_by_id(15804563).unwrap());
    println!("{}", urban::tool_tip("Rust").unwrap());
}

License

Urban is released under the MIT License.

Dependencies

~4–18MB
~256K SLoC