ezlime-rs 0.2.0

A Rust client library for the ezli.me URL shortener API
Documentation

ezlime-rs

Crates.io Documentation

A Rust client library for the ezli.me URL shortener API.

Installation

Add this to your Cargo.toml:

[dependencies]
ezlime-rs = "0.1"

Getting an API Key

To use the ezli.me API, you'll need an API key. If you're interested in using ezli.me for your own project, please join our Discord server to request an API key.

Basic Example

use ezlime_rs::EzlimeApi;

#[tokio::main]
async fn main() -> Result<(), ezlime_rs::EzlimeApiError> {
    let api = EzlimeApi::new("your-api-key-here".to_string());
    let original_url = "https://example.com/very/long/url/that/needs/shortening";

    let shortened = api.create_short_url(original_url).await?;
    println!("Shortened URL: {}", shortened);
    
    Ok(())
}

License

This project is licensed under either of:

at your option.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Links