ezlime-rs 0.1.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::create_short_url;

#[tokio::main]
async fn main() {
    let api_key = "your-api-key-here";
    let original_url = "https://example.com/very/long/url/that/needs/shortening";

    match create_short_url(api_key, original_url).await {
        Some(shortened) => println!("Shortened URL: {}", shortened),
        None => eprintln!("Failed to create shortened URL"),
    }
}

License

This project is licensed under either of:

at your option.

Contributing

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

Links