Show the crate…
1 stable release
1.0.0 | Jan 15, 2022 |
---|
#1526 in #api-client
12KB
154 lines
Urban
Urban Dictionary API client for Rust.
Download
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–15MB
~218K SLoC